diff options
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 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, |