[Mesa-dev] [PATCH shader-db] run: set GALLIUM_THREAD=0

Marek Olšák maraeo at gmail.com
Mon May 15 10:55:51 UTC 2017


From: Marek Olšák <marek.olsak at amd.com>

without this, I get only 30k shaders instead of 48k in the report.
---
 run.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/run.c b/run.c
index 12a78c6..f9bc86a 100644
--- a/run.c
+++ b/run.c
@@ -389,20 +389,21 @@ main(int argc, char **argv)
         print_usage(argv[0]);
         return -1;
     }
 
     setenv("allow_glsl_extension_directive_midshader", "true", 1);
     setenv("shader_precompile", "true", 1);
     setenv("MESA_GLSL_CACHE_DISABLE", "true", 1);
     addenv("ST_DEBUG", "precompile");
     addenv("R600_DEBUG", "precompile");
     addenv("FD_MESA_DEBUG", "shaderdb");
+    addenv("GALLIUM_THREAD", "0");
 
     const char *client_extensions = eglQueryString(EGL_NO_DISPLAY,
                                                    EGL_EXTENSIONS);
     if (!client_extensions) {
         fprintf(stderr, "ERROR: Missing EGL_EXT_client_extensions\n");
         return -1;
     }
 
     if (!strstr(client_extensions, "EGL_MESA_platform_gbm")) {
         fprintf(stderr, "ERROR: Missing EGL_MESA_platform_gbm\n");
-- 
2.7.4



More information about the mesa-dev mailing list