Imported Debian patch 2:1.15.1-0ubuntu2.6
[deb_xorg-server.git] / debian / patches / disable-rotation-transform-gpuscreens.patch
diff --git a/debian/patches/disable-rotation-transform-gpuscreens.patch b/debian/patches/disable-rotation-transform-gpuscreens.patch
new file mode 100644 (file)
index 0000000..9f95572
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c
+index a441fd1..9147a26 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);