Blame SOURCES/0002-xfree86-modes-Call-xf86RotateRedisplay-from-xf86Crtc.patch

61240a
From 532f1618a0600e8601fd42f40eb628e4794300b2 Mon Sep 17 00:00:00 2001
61240a
From: =?UTF-8?q?Michel=20D=C3=A4nzer?= <mdaenzer@redhat.com>
61240a
Date: Tue, 26 Nov 2019 17:16:37 +0100
61240a
Subject: [PATCH xserver 2/3] xfree86/modes: Call xf86RotateRedisplay from
61240a
 xf86CrtcRotate
61240a
MIME-Version: 1.0
61240a
Content-Type: text/plain; charset=UTF-8
61240a
Content-Transfer-Encoding: 8bit
61240a
61240a
If a new rotate buffer was allocated. This makes sure the new buffer
61240a
has valid transformed contents when it starts being displayed.
61240a
61240a
Reviewed-by: Adam Jackson <ajax@redhat.com>
61240a
(Cherry picked from commit 327df450ffcf5bda5b4254db0208d355860d1010)
61240a
61240a
Signed-off-by: Michel Dänzer <mdaenzer@redhat.com>
61240a
---
61240a
 hw/xfree86/modes/xf86Rotate.c | 3 +++
61240a
 1 file changed, 3 insertions(+)
61240a
61240a
diff --git a/hw/xfree86/modes/xf86Rotate.c b/hw/xfree86/modes/xf86Rotate.c
61240a
index a8f1e615c..05944cfcb 100644
61240a
--- a/hw/xfree86/modes/xf86Rotate.c
61240a
+++ b/hw/xfree86/modes/xf86Rotate.c
61240a
@@ -485,6 +485,9 @@ xf86CrtcRotate(xf86CrtcPtr crtc)
61240a
 
61240a
     if (damage)
61240a
         xf86CrtcDamageShadow(crtc);
61240a
+    else if (crtc->rotatedData && !crtc->rotatedPixmap)
61240a
+        /* Make sure the new rotate buffer has valid transformed contents */
61240a
+        xf86RotateRedisplay(pScreen);
61240a
 
61240a
     /* All done */
61240a
     return TRUE;
61240a
-- 
61240a
2.24.0
61240a