[cogl/cogl-1.22] kms-winsys: use correct surface format



commit 181176bdb10b6b8ed51fd64e9d7a0cc9d6706b02
Author: Ray Strode <rstrode redhat com>
Date:   Wed Aug 26 17:02:45 2015 -0400

    kms-winsys: use correct surface format
    
    gbm confusingly has two different format types, and cogl
    is using the wrong one in some of its calls to gbm_surface_create
    
    This commit fixes the calls that are wrong.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=754540

 cogl/winsys/cogl-winsys-egl-kms.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/cogl/winsys/cogl-winsys-egl-kms.c b/cogl/winsys/cogl-winsys-egl-kms.c
index 6628927..a560636 100644
--- a/cogl/winsys/cogl-winsys-egl-kms.c
+++ b/cogl/winsys/cogl-winsys-egl-kms.c
@@ -1029,7 +1029,7 @@ _cogl_winsys_onscreen_init (CoglOnscreen *onscreen,
     gbm_surface_create (kms_renderer->gbm,
                         kms_display->width,
                         kms_display->height,
-                        GBM_BO_FORMAT_XRGB8888,
+                        GBM_FORMAT_XRGB8888,
                         GBM_BO_USE_SCANOUT |
                         GBM_BO_USE_RENDERING);
 
@@ -1229,7 +1229,7 @@ cogl_kms_display_set_layout (CoglDisplay *display,
 
       new_surface = gbm_surface_create (kms_renderer->gbm,
                                         width, height,
-                                        GBM_BO_FORMAT_XRGB8888,
+                                        GBM_FORMAT_XRGB8888,
                                         GBM_BO_USE_SCANOUT |
                                         GBM_BO_USE_RENDERING);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]