diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2016-08-26 18:09:03 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2016-08-26 18:29:58 +0900 |
commit | a92c27484703abc7c410b6ae0e4b8d1efbbb8e6f (patch) | |
tree | fee7c925957f46323b201a1c217ced37b9fd47ad /src | |
parent | 4bd2d01552f18153afa03a8947b22eebf3d67c6b (diff) |
Fix build against xserver < 1.13
pScreen->isGPU was only introduced in 1.13.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97490
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/drmmode_display.c | 5 | ||||
-rw-r--r-- | src/radeon_kms.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c index e4740461..2afeeb02 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -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 || diff --git a/src/radeon_kms.c b/src/radeon_kms.c index c10fb424..51f320cf 100644 --- a/src/radeon_kms.c +++ b/src/radeon_kms.c @@ -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]); |