[PATCH xf86-video-amdgpu 8/9] Call xf86CrtcRotate from initial drmmode_set_desired_modes call
Michel Dänzer
michel at daenzer.net
Wed Nov 11 01:30:54 PST 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
(ported from radeon commit 548e97b3b7d1e94075a54ca2bb4eb683025098a7)
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 4d5a3a3..66528f0 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -2071,6 +2071,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.2
More information about the xorg-driver-ati
mailing list