Fix build against xserver < 1.13
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
@@ -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
@@ -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
Deucher, Alexander
Reviewed-by Alex DeucherQuoted 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->isGPUwas only introduced in 1.13.Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97490
Signed-off-by Michel Dänzer <[email protected]>
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@@ -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@@ -842,7 +842,10 @@ static voidRADEONBlockHandler_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