summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/drm
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2009-01-09 21:50:56 -0800
committerCorbin Simpson <[email protected]>2009-02-01 23:30:21 -0800
commit4aaaecbfa6fa810899ef04de44f9f79ec4d8134f (patch)
tree8dfa7a713e8745f68336b5267ef42e0a6025bd7e /src/gallium/winsys/drm
parente9b08e7373c00306bce398ea8d34f42e54f98c6d (diff)
A bit of r300 cleanup.
Diffstat (limited to 'src/gallium/winsys/drm')
-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);