File n_RandR-Disable-rotation-for-GPU-screens.patch of Package xorg-x11-server.5068
From: Egbert Eich <eich@suse.de>
Date: Wed Jan 20 19:21:59 2016 +0100
Subject: [PATCH]RandR: Disable rotation for GPU screens
Patch-mainline: never
References: boo#962295
Signed-off-by: Egbert Eich <eich@suse.com>
This is a temporary hack to keep the Xserver from crashing.
Signed-off-by: Egbert Eich <eich@suse.de>
---
hw/xfree86/modes/xf86Crtc.c | 2 +-
hw/xfree86/modes/xf86Rotate.c | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c
index b70d089..25b445b 100644
--- a/hw/xfree86/modes/xf86Crtc.c
+++ b/hw/xfree86/modes/xf86Crtc.c
@@ -778,7 +778,7 @@ xf86CrtcScreenInit(ScreenPtr screen)
if (!crtc->funcs->shadow_allocate || !crtc->funcs->shadow_create)
break;
}
- if (c == config->num_crtc) {
+ if (c == config->num_crtc && !screen->isGPU) {
xf86RandR12SetRotations(screen, RR_Rotate_0 | RR_Rotate_90 |
RR_Rotate_180 | RR_Rotate_270 |
RR_Reflect_X | RR_Reflect_Y);