diff options
author | Corbin Simpson <[email protected]> | 2009-01-09 18:57:02 -0800 |
---|---|---|
committer | Corbin Simpson <[email protected]> | 2009-02-01 23:30:21 -0800 |
commit | adb74f5c5262d22b3c60a555431c29d36e3170f7 (patch) | |
tree | ac9ccd60d151bc38546cc62625731b0f6d467138 /src/gallium/winsys/drm | |
parent | 78b599fb4cac469f4208ae3057b2a33e3e9913c6 (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.c | 8 |
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 228bd826d35..faca7d0c4b3 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, |