From 327df450ffcf5bda5b4254db0208d355860d1010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Fri, 22 Nov 2019 17:51:22 +0100 Subject: [PATCH] xfree86/modes: Call xf86RotateRedisplay from xf86CrtcRotate If a new rotate buffer was allocated. This makes sure the new buffer has valid transformed contents when it starts being displayed. Reviewed-by: Adam Jackson --- hw/xfree86/modes/xf86Rotate.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/xfree86/modes/xf86Rotate.c b/hw/xfree86/modes/xf86Rotate.c index a8f1e615c..05944cfcb 100644 --- a/hw/xfree86/modes/xf86Rotate.c +++ b/hw/xfree86/modes/xf86Rotate.c @@ -485,6 +485,9 @@ xf86CrtcRotate(xf86CrtcPtr crtc) if (damage) xf86CrtcDamageShadow(crtc); + else if (crtc->rotatedData && !crtc->rotatedPixmap) + /* Make sure the new rotate buffer has valid transformed contents */ + xf86RotateRedisplay(pScreen); /* All done */ return TRUE;