diff options
author | Emil Velikov <[email protected]> | 2017-08-27 11:20:35 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-08-29 19:14:14 +0100 |
commit | 3666d9ab994ba58ac8b7d6a4d2b6a554953c2442 (patch) | |
tree | f690a9a7a0c743dae7bd9492fff16c2b3745b4e8 | |
parent | 5303f0c2468f47392e5bc580b55b2d3b245258d7 (diff) |
egl/wayland: make sure HAS_$FORMAT is set for wl_dmabuf
Otherwise eglCreateWaylandBufferFromImageWL will fail, since we
have no "supported" format.
Fixes: 02cc35937277 ("egl/wayland: Use linux-dmabuf interface for buffers")
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Daniel Stone <[email protected]>
(cherry picked from commit 9e07005e8709a51f9236e78e8d47d71ab3243e4d)
-rw-r--r-- | src/egl/drivers/dri2/platform_wayland.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index 72ac9229b2e..8d813649ac4 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -1099,12 +1099,15 @@ dmabuf_handle_modifier(void *data, struct zwp_linux_dmabuf_v1 *dmabuf, switch (format) { case WL_DRM_FORMAT_ARGB8888: mod = u_vector_add(&dri2_dpy->wl_modifiers.argb8888); + dri2_dpy->formats |= HAS_ARGB8888; break; case WL_DRM_FORMAT_XRGB8888: mod = u_vector_add(&dri2_dpy->wl_modifiers.xrgb8888); + dri2_dpy->formats |= HAS_XRGB8888; break; case WL_DRM_FORMAT_RGB565: mod = u_vector_add(&dri2_dpy->wl_modifiers.rgb565); + dri2_dpy->formats |= HAS_RGB565; break; default: break; |