[PATCH] Call xf86CrtcRotate from initial drmmode_set_desired_modes call

Michel Dänzer michel at daenzer.net
Fri Oct 16 00:31:24 PDT 2015


From: Michel Dänzer <michel.daenzer at amd.com>

Fixes various problems when rotation is specified in xorg.conf.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92475
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/drmmode_display.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 623124e..64e79d4 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -2240,6 +2240,8 @@ Bool drmmode_set_desired_modes(ScrnInfoPtr pScrn, drmmode_ptr drmmode,
 			crtc->rotation = crtc->desiredRotation;
 			crtc->x = crtc->desiredX;
 			crtc->y = crtc->desiredY;
+			if (!xf86CrtcRotate(crtc))
+			    return FALSE;
 		}
 	}
 	return TRUE;
-- 
2.6.0



More information about the xorg-driver-ati mailing list