diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-19 10:32:33 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-19 10:32:33 +0100 |
commit | 5f138176bf15682324d2e8cfa9fac3e49604bf8f (patch) | |
tree | 62518f57fcdc6aee947556a551bf62738089d044 /src/sna/sna_accel.c | |
parent | 9bd0f8f3e7783d7a6bab707fc08ec96830cd5809 (diff) |
sna: Tweak order of screen re-initialisation
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_accel.c')
-rw-r--r-- | src/sna/sna_accel.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 1b8c8acf..d3dad62c 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -12990,6 +12990,11 @@ bool sna_accel_init(ScreenPtr screen, struct sna *sna) assert(screen->SetWindowPixmap == NULL); screen->SetWindowPixmap = sna_set_window_pixmap; + if (USE_SHM_VMAP && sna->kgem.has_vmap) + ShmRegisterFuncs(screen, &shm_funcs); + else + ShmRegisterFbFuncs(screen); + if (!sna_picture_init(screen)) return false; @@ -13033,11 +13038,6 @@ bool sna_accel_init(ScreenPtr screen, struct sna *sna) bool sna_accel_create(ScreenPtr screen, struct sna *sna) { - if (USE_SHM_VMAP && sna->kgem.has_vmap) - ShmRegisterFuncs(screen, &shm_funcs); - else - ShmRegisterFbFuncs(screen); - if (!sna_glyphs_create(sna)) return false; |