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

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