aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/render.h
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2018-02-23 18:45:16 +0100
committerGuido Günther <agx@sigxcpu.org>2018-03-15 12:40:18 +0100
commit14cdb6153f4293d7e058465ab4acaebd6e1f647c (patch)
treef9a523c0499b80609827378d44105501bf8caf92 /include/wlr/render.h
parent2d0db169422b74e5ef7c07965c376273c7bb2961 (diff)
Add initial linux_dmabuf protocol support
Tested with ./weston-simple-dmabuf-drm ./weston-simple-dmabuf-drm --import-immediate=1 ./weston-simple-dmabuf-drm --y-inverted=1 (and combinations) Supports only single plane XRGB dmabufs for now.
Diffstat (limited to 'include/wlr/render.h')
-rw-r--r--include/wlr/render.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/wlr/render.h b/include/wlr/render.h
index 77449556..9080175f 100644
--- a/include/wlr/render.h
+++ b/include/wlr/render.h
@@ -123,6 +123,8 @@ bool wlr_texture_upload_drm(struct wlr_texture *tex,
bool wlr_texture_upload_eglimage(struct wlr_texture *tex,
EGLImageKHR image, uint32_t width, uint32_t height);
+bool wlr_texture_upload_dmabuf(struct wlr_texture *tex,
+ struct wl_resource *dmabuf_resource);
/**
* Copies a rectangle of pixels from a wl_shm_buffer onto the texture. The
* buffer is not accessed after this function returns. Under some circumstances,