[Mesa-dev] [PATCH 08/15] gbm: Allow creating non-cursor dumb buffers.

Christopher James Halse Rogers christopher.halse.rogers at canonical.com
Sat Jul 20 04:40:40 PDT 2013


This allows display-server/compositors to use gbm buffers for both accelerated and
software-rendered clients, rather than having a separate out-of-band SHM interface.
---
 src/gbm/backends/dri/gbm_dri.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
index 8797069..c19d378 100644
--- a/src/gbm/backends/dri/gbm_dri.c
+++ b/src/gbm/backends/dri/gbm_dri.c
@@ -463,9 +463,8 @@ create_dumb(struct gbm_device *gbm,
    struct drm_mode_destroy_dumb destroy_arg;
    int ret;
 
-   if (!(usage & GBM_BO_USE_CURSOR_64X64))
-      return NULL;
-   if (format != GBM_FORMAT_ARGB8888)
+   if ((format != GBM_FORMAT_ARGB8888) &&
+       (format != GBM_FORMAT_XRGB8888))
       return NULL;
 
    bo = calloc(1, sizeof *bo);
-- 
1.8.3.2



More information about the mesa-dev mailing list