summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@ubuntu.com>2014-10-23 08:21:55 +0200
committerMaarten Lankhorst <maarten.lankhorst@ubuntu.com>2014-10-23 08:21:55 +0200
commit4dfa13c77a1f6cee1affea05b5f3a0b26827d366 (patch)
tree5a1c9e2a4942a0f805ebb83ca8e835f16355376b
parent485902e61b18aff864226db62ba10399aab40128 (diff)
rework initialization to prevent some crashes
-rw-r--r--src/nv_driver.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nv_driver.c b/src/nv_driver.c
index 8c33e0e..e726292 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -1352,8 +1352,6 @@ NVScreenInit(SCREEN_INIT_ARGS_DECL)
}
nouveau_copy_init(pScreen);
- nouveau_sync_init(pScreen);
- nouveau_dri2_init(pScreen);
/* Allocate and map memory areas we need */
if (!NVMapMem(pScrn))
@@ -1462,15 +1460,17 @@ NVScreenInit(SCREEN_INIT_ARGS_DECL)
xf86SetBlackWhitePixels(pScreen);
nouveau_present_init(pScreen);
+ nouveau_sync_init(pScreen);
+ nouveau_dri2_init(pScreen);
if (pNv->AccelMethod == GLAMOR) {
if (!nouveau_glamor_init(pScreen))
return FALSE;
} else
if (pNv->AccelMethod == EXA) {
- if (!nouveau_exa_init(pScreen))
+ if (!nouveau_dri3_screen_init(pScreen))
return FALSE;
- if (!nouveau_dri3_screen_init(pScreen))
+ if (!nouveau_exa_init(pScreen))
return FALSE;
}