summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2019-01-23 00:28:05 -0500
committerIlia Mirkin <imirkin@alum.mit.edu>2019-01-23 21:16:27 -0500
commitfb2d4d27837ebf3ae2fdcf091495f52d2ad8c822 (patch)
treed98767af68ccdb741553dab7740c12ad81355ab8
parent92db605f0f5ac14957e38e59782ef3ed4808de05 (diff)
downloadxorg-driver-xf86-video-nouveau-fb2d4d27837ebf3ae2fdcf091495f52d2ad8c822.tar.gz
present: rotated crtc's work fine
The "pick best" logic takes rotation into account. However flipping a rotated CRTC can't work, so we disable that. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
-rw-r--r--src/nouveau_present.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nouveau_present.c b/src/nouveau_present.c
index ebd5fcf..936475e 100644
--- a/src/nouveau_present.c
+++ b/src/nouveau_present.c
@@ -46,9 +46,6 @@ nouveau_present_crtc(WindowPtr window)
if (!crtc)
return NULL;
- if (crtc->rotatedData)
- return NULL;
-
return crtc->randr_crtc;
}
@@ -152,7 +149,7 @@ nouveau_present_flip_check(RRCrtcPtr rrcrtc, WindowPtr window,
ScrnInfoPtr scrn = xf86ScreenToScrn(window->drawable.pScreen);
xf86CrtcPtr crtc = rrcrtc->devPrivate;
- if (!scrn->vtSema || !drmmode_crtc_on(crtc))
+ if (!scrn->vtSema || !drmmode_crtc_on(crtc) || crtc->rotatedData)
return FALSE;
return TRUE;