Displaying 2 results from an estimated 2 matches for "936475e".
Did you mean:
36475e
2019 Jan 23
0
[PATCH] present: rotated crtc's work fine
...Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
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(-)
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, Wi...
2019 Oct 13
0
[PATCH xf86-video-nouveau] dri2, present: move in pixmap before getting addresses
...rce_cp = FALSE;
+ pixmap_bo = nouveau_pixmap_bo(pixmap);
+
+ if (!pixmap_bo)
+ r = -1;
+ else
+ r = nouveau_bo_name_get(pixmap_bo, &front->name);
+
if (r) {
(*draw->pScreen->DestroyPixmap)(pixmap);
return FALSE;
diff --git a/src/nouveau_present.c b/src/nouveau_present.c
index 936475e..8167fd8 100644
--- a/src/nouveau_present.c
+++ b/src/nouveau_present.c
@@ -147,12 +147,25 @@ nouveau_present_flip_check(RRCrtcPtr rrcrtc, WindowPtr window,
PixmapPtr pixmap, Bool sync_flip)
{
ScrnInfoPtr scrn = xf86ScreenToScrn(window->drawable.pScreen);
+ NVPtr pNv = NVPTR(scrn);
x...