diff options
author | Jochen Rollwagen <joro-2013@t-online.de> | 2016-11-24 18:44:01 +0100 |
---|---|---|
committer | Michel Dänzer <michel.daenzer@amd.com> | 2016-11-25 17:50:24 +0900 |
commit | 487aa62a2a23b86e4ea4714fdfd465c9e513141f (patch) | |
tree | 21a8dee2d08b6b26d2de849caf8bbd626b42cd5b /src | |
parent | 5fea5ef2f07eee4a0f94baab427010b936f1d4b4 (diff) |
fix build for xserver < 1.13
same procedure every few patches.....
Fixes: 13c6bc5e3827 ("Don't install Flush/EventCallback for GPU screens")
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/radeon_kms.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c index dcf41578..d0a474e0 100644 --- a/src/radeon_kms.c +++ b/src/radeon_kms.c @@ -360,7 +360,11 @@ static Bool RADEONCreateScreenResources_KMS(ScreenPtr pScreen) radeon_glamor_create_screen_resources(pScreen); info->callback_event_type = -1; - if (!pScreen->isGPU && (damage_ext = CheckExtension("DAMAGE"))) { + if ( +#ifdef RADEON_PIXMAP_SHARING + !pScreen->isGPU && +#endif + (damage_ext = CheckExtension("DAMAGE"))) { info->callback_event_type = damage_ext->eventBase + XDamageNotify; if (!AddCallback(&FlushCallback, radeon_flush_callback, pScrn)) |