summaryrefslogtreecommitdiff
path: root/src/intel_uxa.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-01-20 15:07:26 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-01-20 15:13:33 +0000
commit3e28a0c0b43823d3104fe8fc50b5994b41fc0cc1 (patch)
tree28917b9615e07bfe876bc7809832ad63ed23ceb1 /src/intel_uxa.c
parent4c4ad555564a80311df1a4b762eb1e119c6d95fb (diff)
Create the UXA generational resources during screen create
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_uxa.c')
-rw-r--r--src/intel_uxa.c7
1 files changed, 6 insertions, 1 deletions
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