amd: Add AMD_SOFTPIPE environment option.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Thu, 29 Jan 2009 23:53:32 +0000 (15:53 -0800)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 2 Feb 2009 07:30:32 +0000 (23:30 -0800)
If set, AMD_SOFTPIPE will make amd switch to softpipe.

src/gallium/winsys/drm/amd/amd_context.c

index 9b3c9c2..86e6e0f 100644 (file)
@@ -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,