summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/egl/common
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2012-07-19 08:54:05 -0400
committerKristian Høgsberg <[email protected]>2012-07-19 14:03:17 -0400
commite23bfdb3298ec43ef895121527fb4d79474d7b1b (patch)
tree61ea162c774eb45e65bfdcc46296ae6d9f31da48 /src/gallium/state_trackers/egl/common
parente1b45a3c06ec19a2b9f1e0d3f8732aaad2d932da (diff)
wayland: Use existing EGL_TEXTURE_FORMAT for querying wl_buffer texture format
We also reuse EGL_TEXTURE_RGBA and EGL_TEXTURE_RGB, adding only the new planar YUV texture formats: EGL_TEXTURE_Y_U_V_WL, EGL_TEXTURE_Y_UV_WL and EGL_TEXTURE_Y_XUXV_WL. Signed-off-by: Kristian Høgsberg <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/egl/common')
-rw-r--r--src/gallium/state_trackers/egl/common/egl_g3d_api.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/egl/common/egl_g3d_api.c b/src/gallium/state_trackers/egl/common/egl_g3d_api.c
index f2e86de3147..b3941f2467b 100644
--- a/src/gallium/state_trackers/egl/common/egl_g3d_api.c
+++ b/src/gallium/state_trackers/egl/common/egl_g3d_api.c
@@ -888,13 +888,13 @@ egl_g3d_query_wayland_buffer_wl(_EGLDriver *drv, _EGLDisplay *dpy,
if (!wayland_buffer_is_drm(&buffer->buffer))
return EGL_FALSE;
- if (attribute == EGL_WAYLAND_BUFFER_COMPONENTS_WL) {
+ if (attribute == EGL_TEXTURE_FORMAT) {
switch (resource->format) {
case PIPE_FORMAT_B8G8R8A8_UNORM:
- *value = EGL_WAYLAND_BUFFER_RGBA_WL;
+ *value = EGL_TEXTURE_RGBA;
return EGL_TRUE;
case PIPE_FORMAT_B8G8R8X8_UNORM:
- *value = EGL_WAYLAND_BUFFER_RGB_WL;
+ *value = EGL_TEXTURE_RGB;
return EGL_TRUE;
default:
return EGL_FALSE;