summaryrefslogtreecommitdiff
path: root/src/nv_driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nv_driver.c')
-rw-r--r--src/nv_driver.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nv_driver.c b/src/nv_driver.c
index 8d02917..581f0c3 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -567,6 +567,7 @@ NVCloseScreen(CLOSE_SCREEN_ARGS_DECL)
drmmode_screen_fini(pScreen);
if (!pNv->NoAccel) {
+ nouveau_dri3_fini(pScreen);
nouveau_sync_fini(pScreen);
nouveau_dri2_fini(pScreen);
}
@@ -1275,7 +1276,10 @@ NVScreenInit(SCREEN_INIT_ARGS_DECL)
}
if (!pNv->NoAccel) {
- nouveau_sync_init(pScreen);
+ if (nouveau_sync_init(pScreen) &&
+ nouveau_dri3_init(pScreen)) {
+ }
+
nouveau_dri2_init(pScreen);
}