summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sna/sna_display.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index a22d94e4..d790975c 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -6296,8 +6296,12 @@ sna_cursor_pre_init(struct sna *sna)
return;
#define LOCAL_IOCTL_GET_CAP DRM_IOWR(0x0c, struct local_get_cap)
-#define DRM_CAP_CURSOR_WIDTH 8
-#define DRM_CAP_CURSOR_HEIGHT 9
+#ifndef DRM_CAP_CURSOR_WIDTH
+#define DRM_CAP_CURSOR_WIDTH 0x8
+#endif
+#ifndef DRM_CAP_CURSOR_HEIGHT
+#define DRM_CAP_CURSOR_HEIGHT 0x9
+#endif
#define I915_PARAM_HAS_COHERENT_PHYS_GTT 29