diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2016-11-25 18:12:40 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2016-11-25 18:12:40 +0900 |
commit | f130b10e63f7526360b41aa0918b4940f63f662a (patch) | |
tree | 95f9019cb768b196711b1b80fec2105aed0182d0 /src/drmmode_display.c | |
parent | 487aa62a2a23b86e4ea4714fdfd465c9e513141f (diff) |
Add radeon_is_gpu_screen helper
This will hopefully decrease the chance of accidentally breaking the
build against xserver < 1.13 in the future.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/drmmode_display.c')
-rw-r--r-- | src/drmmode_display.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c index f856f67b..95e3acdc 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -779,10 +779,7 @@ drmmode_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode, fb_id = drmmode_crtc->rotate.fb_id; x = y = 0; - } else if ( -#ifdef RADEON_PIXMAP_SHARING - !pScreen->isGPU && -#endif + } else if (!radeon_is_gpu_screen(pScreen) && (info->tear_free || #if XF86_CRTC_VERSION >= 4 crtc->driverIsPerformingTransform || |