[Cogl] [PATCH 1/2] kms: Rename gbm_bo_get_pitch to gbm_bo_get_stride

Neil Roberts neil at linux.intel.com
Mon Aug 13 07:43:29 PDT 2012


Mesa has renamed the function so we need to rename it in Cogl too.

http://cgit.freedesktop.org/mesa/mesa/commit/?id=7250cd506baa0
---
 cogl/winsys/cogl-winsys-egl-kms.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cogl/winsys/cogl-winsys-egl-kms.c b/cogl/winsys/cogl-winsys-egl-kms.c
index f341731..32f5289 100644
--- a/cogl/winsys/cogl-winsys-egl-kms.c
+++ b/cogl/winsys/cogl-winsys-egl-kms.c
@@ -659,7 +659,7 @@ _cogl_winsys_onscreen_swap_buffers (CoglOnscreen *onscreen)
   /* Now we need to set the CRTC to whatever is the front buffer */
   kms_onscreen->next_bo = gbm_surface_lock_front_buffer (kms_onscreen->surface);
 
-  pitch = gbm_bo_get_pitch (kms_onscreen->next_bo);
+  pitch = gbm_bo_get_stride (kms_onscreen->next_bo);
   handle = gbm_bo_get_handle (kms_onscreen->next_bo).u32;
 
   if (drmModeAddFB (kms_renderer->fd,
-- 
1.7.11.3.g3c3efa5



More information about the Cogl mailing list