Skip to contentSkip to conversation

present: rotated crtc's work fine

PATCH New Ilia Mirkin 1 participant 1 message Jan 23, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

At first blush, this seems to make DRI3 function reasonably with rotated CRTCs

 src/nouveau_present.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
src/nouveau_present.c +1 -4
index ebd5fcf..936475e 100644
@@ -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;
Signature · 6 lines
2.19.2

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau