From 3e28a0c0b43823d3104fe8fc50b5994b41fc0cc1 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 20 Jan 2011 15:07:26 +0000 Subject: Create the UXA generational resources during screen create Signed-off-by: Chris Wilson --- src/intel_uxa.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/intel_uxa.c') diff --git a/src/intel_uxa.c b/src/intel_uxa.c index 8f58c29d..9341b914 100644 --- a/src/intel_uxa.c +++ b/src/intel_uxa.c @@ -1089,12 +1089,15 @@ static Bool intel_uxa_destroy_pixmap(PixmapPtr pixmap) return TRUE; } -void intel_uxa_create_screen_resources(ScreenPtr screen) +Bool intel_uxa_create_screen_resources(ScreenPtr screen) { ScrnInfoPtr scrn = xf86Screens[screen->myNum]; intel_screen_private *intel = intel_get_screen_private(scrn); dri_bo *bo = intel->front_buffer; + if (!uxa_resources_init(screen)) + return FALSE; + drm_intel_gem_bo_map_gtt(bo); if (intel->use_shadow) { @@ -1111,6 +1114,8 @@ void intel_uxa_create_screen_resources(ScreenPtr screen) NULL); scrn->displayWidth = intel->front_pitch / intel->cpp; } + + return TRUE; } static void -- cgit v1.2.3