summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/drm/amd
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/winsys/drm/amd')
-rw-r--r--src/gallium/winsys/drm/amd/amd_context.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/winsys/drm/amd/amd_context.c b/src/gallium/winsys/drm/amd/amd_context.c
index faca7d0c4b3..5127cdf261a 100644
--- a/src/gallium/winsys/drm/amd/amd_context.c
+++ b/src/gallium/winsys/drm/amd/amd_context.c
@@ -243,8 +243,10 @@ GLboolean amd_context_create(const __GLcontextModes *visual,
}
if (GL_TRUE) {
- /* XXX "NULL" is a struct pipe_screen* just in case we ever need it... */
- pipe = r300_create_context(NULL, amd_context->pipe_winsys,
+ amd_context->pipe_screen = r300_create_screen(amd_context->pipe_winsys,
+ 0x0);
+ pipe = r300_create_context(amd_context->pipe_screen,
+ amd_context->pipe_winsys,
(struct amd_pipe_winsys*)amd_context->pipe_winsys);
} else {
pipe = amd_create_softpipe(amd_context);