From 61e95b8a5f8524c7ff726f92ef6edc6b6bb35196 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Tue, 14 Aug 2012 15:15:56 +0200 Subject: [PATCH] gbm: Add shared usage on images created Tested-by: Scott Moreau Signed-off-by: Jakob Bornecrantz --- 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 f09f6ef9a0e..5c332d48809 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, -- 2.30.2