gbm: Add shared usage on images created

Tested-by: Scott Moreau <oreaus@gmail.com>
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
This commit is contained in:
Jakob Bornecrantz 2012-08-14 15:15:56 +02:00
parent df2c4cbced
commit 61e95b8a5f

View file

@ -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,