This got broken with commit 86024cee back in 2014!
drmmode_pixmap/nouveau_pixmap expect there to be EXA wrapping around the
pixmap now, which is not there without accel.

Signed-off-by: Ilia Mirkin <[email protected]>
---
 src/drmmode_display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 89927a4..69421e1 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -1561,7 +1561,7 @@ drmmode_xf86crtc_resize(ScrnInfoPtr scrn, int width, int 
height)
        }
 
        ppix = screen->GetScreenPixmap(screen);
-       if (pNv->AccelMethod >= NONE)
+       if (pNv->AccelMethod > NONE)
                nouveau_bo_ref(pNv->scanout, &drmmode_pixmap(ppix)->bo);
        screen->ModifyPixmapHeader(ppix, width, height, -1, -1, pitch,
                                   (pNv->AccelMethod > NONE || pNv->ShadowPtr) ?
-- 
2.26.2

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

Reply via email to