summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/drm
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2009-01-09 18:57:02 -0800
committerCorbin Simpson <MostAwesomeDude@gmail.com>2009-02-01 23:30:21 -0800
commitadb74f5c5262d22b3c60a555431c29d36e3170f7 (patch)
treeac9ccd60d151bc38546cc62625731b0f6d467138 /src/gallium/winsys/drm
parent78b599fb4cac469f4208ae3057b2a33e3e9913c6 (diff)
r300: Hook up to winsys, add missing header.
In theory it works, which of course means that it doesn't.
Diffstat (limited to 'src/gallium/winsys/drm')
-rw-r--r--src/gallium/winsys/drm/amd/amd_context.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gallium/winsys/drm/amd/amd_context.c b/src/gallium/winsys/drm/amd/amd_context.c
index 228bd826d3..faca7d0c4b 100644
--- a/src/gallium/winsys/drm/amd/amd_context.c
+++ b/src/gallium/winsys/drm/amd/amd_context.c
@@ -242,7 +242,13 @@ GLboolean amd_context_create(const __GLcontextModes *visual,
return GL_FALSE;
}
- pipe = amd_create_softpipe(amd_context);
+ 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,
+ (struct amd_pipe_winsys*)amd_context->pipe_winsys);
+ } else {
+ pipe = amd_create_softpipe(amd_context);
+ }
amd_context->st_context = st_create_context(pipe, visual,
shared_st_context);
driInitExtensions(amd_context->st_context->ctx,