summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2012-05-23 21:23:09 +0300
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-07-15 19:12:07 +0200
commit5d78c4cac24ad3830dba1900d5d879551dcbb407 (patch)
tree3b7504c9899784892961bface00ed1b6d58b1718
parentf246a251f88dab6a9db83e2d8bbd699e29950459 (diff)
qxl_screen_init: move uxa_resources_init down to after qxl_switch_mode has run
-rw-r--r--src/qxl_driver.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index 2b0d567..b0967dc 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -1207,13 +1207,6 @@ qxl_screen_init(SCREEN_INIT_ARGS_DECL)
if (!miCreateDefColormap(pScreen))
goto out;
- /* Note: this must be done after DamageSetup() because it calls
- * _dixInitPrivates. And if that has been called, DamageSetup()
- * will assert.
- */
- if (!uxa_resources_init (pScreen))
- return FALSE;
-
qxl->create_screen_resources = pScreen->CreateScreenResources;
pScreen->CreateScreenResources = qxl_create_screen_resources;
@@ -1229,6 +1222,12 @@ qxl_screen_init(SCREEN_INIT_ARGS_DECL)
qxl_switch_mode(SWITCH_MODE_ARGS(pScrn, pScrn->currentMode));
+ /* Note: this must be done after DamageSetup() because it calls
+ * _dixInitPrivates. And if that has been called, DamageSetup()
+ * will assert.
+ */
+ if (!uxa_resources_init (pScreen))
+ return FALSE;
CHECK_POINT();
return TRUE;