diff options
author | Jakob Bornecrantz <[email protected]> | 2012-08-14 15:15:56 +0200 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2012-08-22 00:01:28 +0200 |
commit | 61e95b8a5f8524c7ff726f92ef6edc6b6bb35196 (patch) | |
tree | b8dbf4219bb31a65ba3f12ee1d99d62f3158e50a | |
parent | df2c4cbcedb2dcf2aa44adaa6462d9becccbea49 (diff) |
gbm: Add shared usage on images created
Tested-by: Scott Moreau <[email protected]>
Signed-off-by: Jakob Bornecrantz <[email protected]>
-rw-r--r-- | src/gbm/backends/dri/gbm_dri.c | 3 |
1 files changed, 3 insertions, 0 deletions
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, |