gbm: Add shared usage on images created
authorJakob Bornecrantz <jakob@vmware.com>
Tue, 14 Aug 2012 13:15:56 +0000 (15:15 +0200)
committerJakob Bornecrantz <jakob@vmware.com>
Tue, 21 Aug 2012 22:01:28 +0000 (00:01 +0200)
Tested-by: Scott Moreau <oreaus@gmail.com>
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
src/gbm/backends/dri/gbm_dri.c

index f09f6ef9a0e65d3604838e4eb3d5a0c8d08ed411..5c332d48809a78ae92cb25f0adae7ff198a98715 100644 (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,