summaryrefslogtreecommitdiff
path: root/src/nv_driver.c
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2020-07-18 18:44:58 -0400
committerIlia Mirkin <imirkin@alum.mit.edu>2020-08-08 16:47:50 -0400
commitf833cd0827a73b716cc3af5905015fcb2c7d958d (patch)
tree817604bca036b030f9bab856240ca7a74be6d481 /src/nv_driver.c
parent971624406a8ecd85bad8c2e2d1fd26f5d14bae92 (diff)
downloadxorg-driver-xf86-video-nouveau-f833cd0827a73b716cc3af5905015fcb2c7d958d.tar.gz
present: don't enable if there's no acceleration
All the present logic relies on EXA being used to wrap everything. Unclear if present could even be used without the other things EXA enables, but better be safe. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Diffstat (limited to 'src/nv_driver.c')
-rw-r--r--src/nv_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nv_driver.c b/src/nv_driver.c
index a63674c..e72a6b6 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -1489,7 +1489,7 @@ NVScreenInit(SCREEN_INIT_ARGS_DECL)
xf86SetBlackWhitePixels(pScreen);
- if (nouveau_present_init(pScreen))
+ if (pNv->AccelMethod == EXA && nouveau_present_init(pScreen))
xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"Hardware support for Present enabled\n");
else