From 971624406a8ecd85bad8c2e2d1fd26f5d14bae92 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Sat, 18 Jul 2020 18:40:35 -0400 Subject: drmmode: fix screen resize without acceleration 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 --- 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 5bab3d5..2d3229c 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -1545,7 +1545,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) ? -- cgit v1.2.3