mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
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:
parent
df2c4cbced
commit
61e95b8a5f
1 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue