From 1aaec8c60985ffe03af265bf8f659ee0319926ca Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Thu, 5 Jul 2012 16:27:05 -0400 Subject: [PATCH] wayland-drm: Add protocol to create planar buffers --- src/egl/drivers/dri2/egl_dri2.c | 2 +- .../wayland-drm/protocol/wayland-drm.xml | 16 ++++ src/egl/wayland/wayland-drm/wayland-drm.c | 89 +++++++++++++++---- src/egl/wayland/wayland-drm/wayland-drm.h | 5 +- .../common/native_wayland_drm_bufmgr_helper.c | 2 +- 5 files changed, 92 insertions(+), 22 deletions(-) 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 @@ + + + + + + + + + + + + + + +