From: Jakob Bornecrantz Date: Tue, 14 Aug 2012 13:15:56 +0000 (+0200) Subject: gbm: Add shared usage on images created X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=61e95b8a5f8524c7ff726f92ef6edc6b6bb35196;p=mesa.git gbm: Add shared usage on images created Tested-by: Scott Moreau Signed-off-by: Jakob Bornecrantz --- 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,