[Mesa-dev] [PATCH 04/10] egl: allow RGB565 formats in eglCreateWaylandBufferFromImageWL
Emil Velikov
emil.l.velikov at gmail.com
Sun Aug 27 10:20:29 UTC 2017
From: Emil Velikov <emil.velikov at collabora.com>
There's nothing special required, but a simple format check.
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
src/egl/drivers/dri2/platform_wayland.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c
index 754ce6c3990..4a6574350aa 100644
--- a/src/egl/drivers/dri2/platform_wayland.c
+++ b/src/egl/drivers/dri2/platform_wayland.c
@@ -925,6 +925,10 @@ dri2_wl_create_wayland_buffer_from_image(_EGLDriver *drv,
if (!(dri2_dpy->formats & HAS_XRGB8888))
goto bad_format;
break;
+ case __DRI_IMAGE_FORMAT_RGB565:
+ if (!(dri2_dpy->formats & HAS_RGB565))
+ goto bad_format;
+ break;
default:
goto bad_format;
}
--
2.14.0
More information about the mesa-dev
mailing list