[cogl/rstrode/wip/render-node: 4/5] kms-winsys: drop support for old gbm
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/rstrode/wip/render-node: 4/5] kms-winsys: drop support for old gbm
- Date: Thu, 27 Aug 2015 00:22:10 +0000 (UTC)
commit 7bf4de2f581cb7f24021116e668af283161aa0c4
Author: Ray Strode <rstrode redhat com>
Date: Wed Aug 26 11:30:04 2015 -0400
kms-winsys: drop support for old gbm
We need to use modern features from it, and having #ifdefs
are cumbersome.
cogl/winsys/cogl-winsys-egl-kms.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/cogl/winsys/cogl-winsys-egl-kms.c b/cogl/winsys/cogl-winsys-egl-kms.c
index a4f6ba9..29b6bc0 100644
--- a/cogl/winsys/cogl-winsys-egl-kms.c
+++ b/cogl/winsys/cogl-winsys-egl-kms.c
@@ -913,13 +913,7 @@ _cogl_winsys_onscreen_swap_buffers_with_damage (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);
-
-#if (COGL_VERSION_ENCODE (COGL_GBM_MAJOR, COGL_GBM_MINOR, COGL_GBM_MICRO) >= \
- COGL_VERSION_ENCODE (8, 1, 0))
stride = gbm_bo_get_stride (kms_onscreen->next_bo);
-#else
- stride = gbm_bo_get_pitch (kms_onscreen->next_bo);
-#endif
handle = gbm_bo_get_handle (kms_onscreen->next_bo).u32;
if (drmModeAddFB (kms_renderer->card_device.fd,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]