From: Kristian Høgsberg Date: Thu, 5 Jul 2012 20:27:05 +0000 (-0400) Subject: wayland-drm: Add protocol to create planar buffers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1aaec8c60985ffe03af265bf8f659ee0319926ca;p=mesa.git wayland-drm: Add protocol to create planar buffers --- diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index bb30e699fe4..0fc33e01513 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -1243,7 +1243,7 @@ dri2_wl_reference_buffer(void *user_data, uint32_t name, buffer->buffer.width, buffer->buffer.height, buffer->driver_format, name, - buffer->stride0 / 4, + buffer->stride[0] / 4, NULL); } diff --git a/src/egl/wayland/wayland-drm/protocol/wayland-drm.xml b/src/egl/wayland/wayland-drm/protocol/wayland-drm.xml index 89fd8f08872..265d4f892af 100644 --- a/src/egl/wayland/wayland-drm/protocol/wayland-drm.xml +++ b/src/egl/wayland/wayland-drm/protocol/wayland-drm.xml @@ -119,6 +119,22 @@ + + + + + + + + + + + + + + +