summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2016-10-17 18:38:55 +0900
committerMichel Dänzer <michel@daenzer.net>2016-10-19 18:05:42 +0900
commit7c66be961de3477fc685eb71b46265adbae923f0 (patch)
treed79ee49b1e79de38f19169f7e6977f8201abaa5a /src
parentd016f20b14ffe4f90f7457375b2d9f5cf0f5650f (diff)
Enable HW cursor support with PRIME slave output & Xorg > 1.18.99.901
Supported since Xorg 1.18.99.2, but buggy until 1.18.99.901. (Ported from amdgpu commit 7cc04035c55788261cda89a915c433c2add6cad9) Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src')
-rw-r--r--src/drmmode_display.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 8f62caef..2cb59312 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -671,8 +671,9 @@ drmmode_can_use_hw_cursor(xf86CrtcPtr crtc)
return FALSE;
#endif
-#ifdef RADEON_PIXMAP_SHARING
- /* HW cursor not supported yet with RandR 1.4 multihead */
+#if defined(RADEON_PIXMAP_SHARING) && \
+ XORG_VERSION_CURRENT <= XORG_VERSION_NUMERIC(1,18,99,901,0)
+ /* HW cursor not supported with RandR 1.4 multihead */
if (!xorg_list_is_empty(&crtc->scrn->pScreen->pixmap_dirty_list))
return FALSE;
#endif