From: Corbin Simpson Date: Sat, 24 Jan 2009 00:34:00 +0000 (-0800) Subject: amd: Fix uninitialized pipe_screen. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=02c6e523305de017b49d6851034fcea6c568e94c;p=mesa.git amd: Fix uninitialized pipe_screen. --- diff --git a/src/gallium/winsys/drm/amd/amd_context.c b/src/gallium/winsys/drm/amd/amd_context.c index 7a486c93a59..df8eb850c81 100644 --- a/src/gallium/winsys/drm/amd/amd_context.c +++ b/src/gallium/winsys/drm/amd/amd_context.c @@ -243,11 +243,12 @@ GLboolean amd_context_create(const __GLcontextModes *visual, } if (GL_TRUE) { - fprintf(stderr, "Creating r300 context..."); + fprintf(stderr, "Creating r300 context...\n"); pipe = r300_create_context(NULL, amd_context->pipe_winsys, amd_create_r300_winsys(amd_context->drm_fd)); + amd_context->pipe_screen = pipe->screen; } else { pipe = amd_create_softpipe(amd_context); }