diff options
-rw-r--r-- | src/intel_driver.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/intel_driver.c b/src/intel_driver.c index e4dd26b3..4265de82 100644 --- a/src/intel_driver.c +++ b/src/intel_driver.c @@ -1011,13 +1011,6 @@ I830ScreenInit(int scrnIndex, ScreenPtr screen, int argc, char **argv) "Hardware cursor initialization failed\n"); } - /* Must force it before EnterVT, so we are in control of VT and - * later memory should be bound when allocating, e.g rotate_mem */ - scrn->vtSema = TRUE; - - if (!I830EnterVT(scrnIndex, 0)) - return FALSE; - intel->BlockHandler = screen->BlockHandler; screen->BlockHandler = I830BlockHandler; @@ -1090,7 +1083,11 @@ I830ScreenInit(int scrnIndex, ScreenPtr screen, int argc, char **argv) I830UeventInit(scrn); #endif - return TRUE; + /* Must force it before EnterVT, so we are in control of VT and + * later memory should be bound when allocating, e.g rotate_mem */ + scrn->vtSema = TRUE; + + return I830EnterVT(scrnIndex, 0); } static void i830AdjustFrame(int scrnIndex, int x, int y, int flags) |