summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2013-01-09 12:52:13 +1000
committerDave Airlie <airlied@redhat.com>2013-04-30 10:10:51 +1000
commitf2fd8ec3725a61abbc831f0a9ec28fa2b7020c47 (patch)
tree4353b31256a5f08ec6a483b70292e5923d965125 /dix
parent8fcb9d91b69abc72ddef31b9f2e8585580c6cad2 (diff)
gpu: call CreateScreenResources for GPU screens
I didn't think we needed this before, but after doing some more work with reverse optimus it seems like it should be called. Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'dix')
-rw-r--r--dix/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dix/main.c b/dix/main.c
index bea1a8d5a..c46e40ab7 100644
--- a/dix/main.c
+++ b/dix/main.c
@@ -211,6 +211,9 @@ main(int argc, char *argv[], char *envp[])
ScreenPtr pScreen = screenInfo.gpuscreens[i];
if (!CreateScratchPixmapsForScreen(pScreen))
FatalError("failed to create scratch pixmaps");
+ if (pScreen->CreateScreenResources &&
+ !(*pScreen->CreateScreenResources) (pScreen))
+ FatalError("failed to create screen resources");
}
for (i = 0; i < screenInfo.numScreens; i++) {