From: Corbin Simpson Date: Thu, 29 Jan 2009 23:53:32 +0000 (-0800) Subject: amd: Add AMD_SOFTPIPE environment option. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7ccc9a92ce83d5e38549a6f6c5f22b358a90e578;p=mesa.git amd: Add AMD_SOFTPIPE environment option. If set, AMD_SOFTPIPE will make amd switch to softpipe. --- diff --git a/src/gallium/winsys/drm/amd/amd_context.c b/src/gallium/winsys/drm/amd/amd_context.c index 9b3c9c2ab2e..86e6e0f5f79 100644 --- a/src/gallium/winsys/drm/amd/amd_context.c +++ b/src/gallium/winsys/drm/amd/amd_context.c @@ -242,7 +242,7 @@ GLboolean amd_context_create(const __GLcontextModes *visual, return GL_FALSE; } - if (1) { + if (!getenv("AMD_SOFTPIPE")) { fprintf(stderr, "Creating r300 context...\n"); pipe = r300_create_context(NULL,