diff options
author | Singh, Satyeshwar <[email protected]> | 2013-10-16 01:10:12 +0000 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2013-10-15 21:26:56 -0700 |
commit | 2efc97d51300849636b4b64ef8dfb5645e3b4e5b (patch) | |
tree | a51d95b6111f75f3ce15e39fb0d7a73b2a340a54 /src/egl/wayland | |
parent | 94d05bf87a21bd364e84f699a0064e5fba58a6f9 (diff) |
egl-wayland: Add support for RGB565 pixel format for Wayland clients
With this patch Wayland clients can now ask EGL for RGB 565 format buffers
and attach them to a Wayland compositor.
Signed-off-by: Kristian Høgsberg <[email protected]>
Diffstat (limited to 'src/egl/wayland')
-rw-r--r-- | src/egl/wayland/wayland-drm/wayland-drm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/egl/wayland/wayland-drm/wayland-drm.c b/src/egl/wayland/wayland-drm/wayland-drm.c index 7b614b71b5c..06bd18cf461 100644 --- a/src/egl/wayland/wayland-drm/wayland-drm.c +++ b/src/egl/wayland/wayland-drm/wayland-drm.c @@ -126,6 +126,7 @@ drm_create_buffer(struct wl_client *client, struct wl_resource *resource, case WL_DRM_FORMAT_ARGB8888: case WL_DRM_FORMAT_XRGB8888: case WL_DRM_FORMAT_YUYV: + case WL_DRM_FORMAT_RGB565: break; default: wl_resource_post_error(resource, @@ -223,6 +224,8 @@ bind_drm(struct wl_client *client, void *data, uint32_t version, uint32_t id) WL_DRM_FORMAT_ARGB8888); wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_XRGB8888); + wl_resource_post_event(resource, WL_DRM_FORMAT, + WL_DRM_FORMAT_RGB565); wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_YUV410); wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_YUV411); wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_YUV420); |