Skip to contentSkip to conversation

Fix build against xserver < 1.13

PATCH In review Michel Dänzer 2 participants 2 messages Aug 26, 2016 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix build against xserver < 1.13

From: Michel Dänzer <[email protected]>

pScreen->isGPU was only introduced in 1.13.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97490

---
 src/drmmode_display.c | 5 ++++-
 src/radeon_kms.c      | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)
src/drmmode_display.c +4 -1
index e474046..2afeeb0 100644
@@ -799,7 +799,10 @@ drmmode_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
 
 			drmmode_crtc_scanout_destroy(drmmode, &drmmode_crtc->scanout[0]);
 			drmmode_crtc_scanout_destroy(drmmode, &drmmode_crtc->scanout[1]);
-		} else if (!pScreen->isGPU &&
+		} else if (
+#ifdef RADEON_PIXMAP_SHARING
+			!pScreen->isGPU &&
+#endif
 			   (info->tear_free ||
 #if XF86_CRTC_VERSION >= 4
 			    crtc->driverIsPerformingTransform ||
src/radeon_kms.c +4 -1
index c10fb42..51f320c 100644
@@ -842,7 +842,10 @@ static void RADEONBlockHandler_KMS(BLOCKHANDLER_ARGS_DECL)
     (*pScreen->BlockHandler) (BLOCKHANDLER_ARGS);
     pScreen->BlockHandler = RADEONBlockHandler_KMS;
 
-    if (!pScreen->isGPU) {
+#ifdef RADEON_PIXMAP_SHARING
+    if (!pScreen->isGPU)
+#endif
+    {
 	for (c = 0; c < xf86_config->num_crtc; c++) {
 	    if (info->tear_free)
 		radeon_scanout_flip(pScreen, info, xf86_config->crtc[c]);
Signature · 6 lines
2.9.3

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 20160826093027.10246-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org

Reviewed-by Alex Deucher
#2 lore raw
Quoted 7 lines

-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Michel Dänzer
Sent: Friday, August 26, 2016 5:30 AM
To: [email protected]
Subject: [PATCH xf86-video-ati] Fix build against xserver < 1.13

Quoted 6 lines

From: Michel Dänzer <[email protected]>

pScreen->isGPU was only introduced in 1.13.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97490

Quoted 44 lines
---
 src/drmmode_display.c | 5 ++++-
 src/radeon_kms.c      | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)
src/drmmode_display.c +4 -1
index e474046..2afeeb0 100644
@@ -799,7 +799,10 @@ drmmode_set_mode_major(xf86CrtcPtr crtc,
 DisplayModePtr mode,
 
 			drmmode_crtc_scanout_destroy(drmmode,
 &drmmode_crtc->scanout[0]);
 			drmmode_crtc_scanout_destroy(drmmode,
 &drmmode_crtc->scanout[1]);
-		} else if (!pScreen->isGPU &&
+		} else if (
+#ifdef RADEON_PIXMAP_SHARING
+			!pScreen->isGPU &&
+#endif
src/drmmode_display.c +0 -0
 			   (info->tear_free ||
 #if XF86_CRTC_VERSION >= 4
 			    crtc->driverIsPerformingTransform ||
src/radeon_kms.c +4 -1
index c10fb42..51f320c 100644
@@ -842,7 +842,10 @@ static void
 RADEONBlockHandler_KMS(BLOCKHANDLER_ARGS_DECL)
     (*pScreen->BlockHandler) (BLOCKHANDLER_ARGS);
     pScreen->BlockHandler = RADEONBlockHandler_KMS;
 
-    if (!pScreen->isGPU) {
+#ifdef RADEON_PIXMAP_SHARING
+    if (!pScreen->isGPU)
+#endif
+    {
 	for (c = 0; c < xf86_config->num_crtc; c++) {
 	    if (info->tear_free)

radeon_scanout_flip(pScreen, info, xf86_config->crtc[c]);
--
2.9.3

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx