[Mesa-dev] [PATCH 3/6] gbm: Add shared usage on images created
Jakob Bornecrantz
jakob at vmware.com
Wed Aug 15 03:50:15 PDT 2012
Signed-off-by: Jakob Bornecrantz <jakob at vmware.com>
---
src/gbm/backends/dri/gbm_dri.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
index f09f6ef..5c332d4 100644
--- a/src/gbm/backends/dri/gbm_dri.c
+++ b/src/gbm/backends/dri/gbm_dri.c
@@ -483,6 +483,9 @@ gbm_dri_bo_create(struct gbm_device *gbm,
if (usage & GBM_BO_USE_WRITE)
dri_use |= __DRI_IMAGE_USE_WRITE;
+ /* Gallium drivers requires shared in order to get the handle/stride */
+ dri_use |= __DRI_IMAGE_USE_SHARE;
+
bo->image =
dri->image->createImage(dri->screen,
width, height,
--
1.7.9.5
More information about the mesa-dev
mailing list