diff options
author | Flora Cui <[email protected]> | 2015-03-24 18:34:29 +0800 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2015-04-16 15:49:15 +0900 |
commit | f78b2c432f31a18794b9f62f0a0cfb8eca256151 (patch) | |
tree | 27883c192c572c84dee11d71c0b30afdca11c964 /src/gbm/backends/dri | |
parent | 7c154bbe6080ced9607bc3f3240d2f0866018aeb (diff) |
gbm: Add GBM_BO_USE_LINEAR flag
Signed-off-by: Flora Cui <[email protected]>
Reviewed-by: Jammy Zhou <[email protected]>
Reviewed-by: Michel Dänzer <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gbm/backends/dri')
-rw-r--r-- | src/gbm/backends/dri/gbm_dri.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c index c5136723162..62bdf891d57 100644 --- a/src/gbm/backends/dri/gbm_dri.c +++ b/src/gbm/backends/dri/gbm_dri.c @@ -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; |