diff options
author | Jakob Bornecrantz <jakob@vmware.com> | 2012-08-14 15:15:56 +0200 |
---|---|---|
committer | Jakob Bornecrantz <jakob@vmware.com> | 2012-08-22 00:01:28 +0200 |
commit | 61e95b8a5f8524c7ff726f92ef6edc6b6bb35196 (patch) | |
tree | b8dbf4219bb31a65ba3f12ee1d99d62f3158e50a /src/gbm/backends | |
parent | df2c4cbcedb2dcf2aa44adaa6462d9becccbea49 (diff) | |
download | external_mesa3d-61e95b8a5f8524c7ff726f92ef6edc6b6bb35196.zip external_mesa3d-61e95b8a5f8524c7ff726f92ef6edc6b6bb35196.tar.gz external_mesa3d-61e95b8a5f8524c7ff726f92ef6edc6b6bb35196.tar.bz2 |
gbm: Add shared usage on images created
Tested-by: Scott Moreau <oreaus@gmail.com>
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Diffstat (limited to 'src/gbm/backends')
-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 f09f6ef..5c332d4 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, |