summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2019-07-24 15:45:21 +0200
committerMichel Dänzer <michel@daenzer.net>2019-08-07 18:04:52 +0200
commitac66086613cbd0974b421cd5eda872adc15242ed (patch)
treedd6258fb94fc7408505a3b9e3bd59b3723720b3e
parent98f172eb2d2353e19edd8167f22215ce596811f8 (diff)
present: Also check pixmap pitch in check_flip with current xserver
The corresponding check in the xserver Present code was removed again, because flipping between different pitches can work in some cases. Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
-rw-r--r--src/amdgpu_present.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/amdgpu_present.c b/src/amdgpu_present.c
index 83a0517..45a969d 100644
--- a/src/amdgpu_present.c
+++ b/src/amdgpu_present.c
@@ -274,10 +274,8 @@ amdgpu_present_check_flip(RRCrtcPtr crtc, WindowPtr window, PixmapPtr pixmap,
if (info->drmmode.dri2_flipping)
return FALSE;
-#if XORG_VERSION_CURRENT <= XORG_VERSION_NUMERIC(1, 20, 99, 1, 0)
if (pixmap->devKind != screen_pixmap->devKind)
return FALSE;
-#endif
if (priv && priv->fb_failed)
return FALSE;