diff options
author | Michel Dänzer <[email protected]> | 2014-06-03 16:45:23 +0900 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2014-06-12 16:13:39 +0900 |
commit | be5e5b6c9364fcac8f26bc2875ffcfbaa4e17b45 (patch) | |
tree | ab29b1e57da1b0d35924a7a5e3e42a3c8f858d79 /src/gbm/main | |
parent | 2c8520c03de135228c37d67c9ff9756e3febb660 (diff) |
gbm: Remove 64x64 restriction from GBM_BO_USE_CURSOR
GBM_BO_USE_CURSOR_64X64 is kept so that existing users of GBM continue to
build, but it no longer rejects widths or heights other than 64.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79809
Reviewed-by: Alex Deucher <[email protected]>
Reviewed-by: Kristian Høgsberg <[email protected]>
Diffstat (limited to 'src/gbm/main')
-rw-r--r-- | src/gbm/main/gbm.c | 6 | ||||
-rw-r--r-- | src/gbm/main/gbm.h | 12 |
2 files changed, 7 insertions, 11 deletions
diff --git a/src/gbm/main/gbm.c b/src/gbm/main/gbm.c index 907ca3c90bf..c39cbfa7403 100644 --- a/src/gbm/main/gbm.c +++ b/src/gbm/main/gbm.c @@ -348,12 +348,6 @@ gbm_bo_create(struct gbm_device *gbm, return NULL; } - if (usage & GBM_BO_USE_CURSOR_64X64 && - (width != 64 || height != 64)) { - errno = EINVAL; - return NULL; - } - return gbm->bo_create(gbm, width, height, format, usage); } diff --git a/src/gbm/main/gbm.h b/src/gbm/main/gbm.h index 92d472a0762..374cef83e3e 100644 --- a/src/gbm/main/gbm.h +++ b/src/gbm/main/gbm.h @@ -192,10 +192,13 @@ enum gbm_bo_flags { */ GBM_BO_USE_SCANOUT = (1 << 0), /** - * Buffer is going to be used as cursor - the dimensions for the buffer - * must be 64x64 if this flag is passed. + * Buffer is going to be used as cursor */ - GBM_BO_USE_CURSOR_64X64 = (1 << 1), + GBM_BO_USE_CURSOR = (1 << 1), + /** + * Deprecated + */ + GBM_BO_USE_CURSOR_64X64 = GBM_BO_USE_CURSOR, /** * Buffer is to be used for rendering - for example it is going to be used * as the storage for a color buffer @@ -203,8 +206,7 @@ enum gbm_bo_flags { GBM_BO_USE_RENDERING = (1 << 2), /** * Buffer can be used for gbm_bo_write. This is guaranteed to work - * with GBM_BO_USE_CURSOR_64X64. but may not work for other - * combinations. + * with GBM_BO_USE_CURSOR. but may not work for other combinations. */ GBM_BO_USE_WRITE = (1 << 3), }; |