Displaying 3 results from an estimated 3 matches for "drmmode_crtc_on".
2017 Mar 04
0
[DDX PATCH] Consider CRTCs disabled when DPMS is off
...eflips and vblank waits on disabled CRTCs. I'm not sure how
pageflipping disabled CRTCs ever worked in the first place, but since
not doing so is the proper behavior anyway I haven't investigated any
further.
So, copy the ms_crtc_on() function from the modesetting driver and add
it here as drmmode_crtc_on(), then use that in all of the places where
we should be checking for both DPMS off and disabled CRTCs.
This fixes issues with the X ceasing to function (usually) after the
first time a CRTC has it's DPMS turned on. Reproduction recipe:
- Load up gnome-shell on a machine
- Wait for the displa...
2019 Jan 23
0
[PATCH] present: rotated crtc's work fine
...(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;
--
2.19.2
2019 Oct 13
0
[PATCH xf86-video-nouveau] dri2, present: move in pixmap before getting addresses
...tcPtr rrcrtc, WindowPtr window,
PixmapPtr pixmap, Bool sync_flip)
{
ScrnInfoPtr scrn = xf86ScreenToScrn(window->drawable.pScreen);
+ NVPtr pNv = NVPTR(scrn);
xf86CrtcPtr crtc = rrcrtc->devPrivate;
+ struct nouveau_pixmap *priv = nouveau_pixmap(pixmap);
if (!scrn->vtSema || !drmmode_crtc_on(crtc) || crtc->rotatedData)
return FALSE;
- return TRUE;
+ if (!priv) {
+ /* The pixmap may not have had backing for low-memory GPUs, or
+ * if we ran out of VRAM. Make sure it's properly backed for
+ * flipping.
+ */
+ pNv->exa_force_cp = TRUE;
+ exaMoveInPixmap(pixmap);
+...