[PATCH 3/3] Use Mesa GBM_BO_USE_CURSOR define (which removes 64x64 restriction)

Alvaro Fernando García alvarofernandogarcia at gmail.com
Tue Jun 24 20:29:19 PDT 2014


Signed-off-by: Alvaro Fernando García <alvarofernandogarcia at gmail.com>
---
 src/compositor-drm.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/compositor-drm.c b/src/compositor-drm.c
index 3c455bf..61ddea1 100644
--- a/src/compositor-drm.c
+++ b/src/compositor-drm.c
@@ -1577,9 +1577,13 @@ drm_output_init_egl(struct drm_output *output, struct drm_compositor *ec)
 		return -1;
 	}
 
+#ifdef GBM_BO_USE_CURSOR
+	flags = GBM_BO_USE_CURSOR | GBM_BO_USE_WRITE;
+#else
 	flags = GBM_BO_USE_WRITE;
 	if (ec->cursor_width == 64 && ec->cursor_height == 64)
 		flags = GBM_BO_USE_CURSOR_64X64 | flags;
+#endif
 
 	for (i = 0; i < 2; i++) {
 		if (output->cursor_bo[i])
-- 
2.0.0



More information about the wayland-devel mailing list