mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
gbm: Add GBM_BO_USE_LINEAR flag
Signed-off-by: Flora Cui <flora.cui@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
7c154bbe60
commit
f78b2c432f
2 changed files with 6 additions and 0 deletions
|
|
@ -858,6 +858,8 @@ gbm_dri_bo_create(struct gbm_device *gbm,
|
|||
dri_use |= __DRI_IMAGE_USE_SCANOUT;
|
||||
if (usage & GBM_BO_USE_CURSOR)
|
||||
dri_use |= __DRI_IMAGE_USE_CURSOR;
|
||||
if (usage & GBM_BO_USE_LINEAR)
|
||||
dri_use |= __DRI_IMAGE_USE_LINEAR;
|
||||
|
||||
/* Gallium drivers requires shared in order to get the handle/stride */
|
||||
dri_use |= __DRI_IMAGE_USE_SHARE;
|
||||
|
|
|
|||
|
|
@ -209,6 +209,10 @@ enum gbm_bo_flags {
|
|||
* with GBM_BO_USE_CURSOR. but may not work for other combinations.
|
||||
*/
|
||||
GBM_BO_USE_WRITE = (1 << 3),
|
||||
/**
|
||||
* Buffer is linear, i.e. not tiled.
|
||||
*/
|
||||
GBM_BO_USE_LINEAR = (1 << 4),
|
||||
};
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue