summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2020-07-18 18:40:35 -0400
committerIlia Mirkin <imirkin@alum.mit.edu>2020-08-08 16:47:50 -0400
commit971624406a8ecd85bad8c2e2d1fd26f5d14bae92 (patch)
treee1b5dd4f0e46360090827babdd314b4563703559
parent5444cabcf0ab5cea614270f1ad1df1e1fccb3c2b (diff)
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 <imirkin@alum.mit.edu>
-rw-r--r--src/drmmode_display.c2
1 files changed, 1 insertions, 1 deletions
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) ?