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

Nicolai Hähnle nhaehnle at gmail.com
Mon May 15 14:34:00 UTC 2017


On 15.05.2017 12:55, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> without this, I get only 30k shaders instead of 48k in the report.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>


> ---
>  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");
>


-- 
Lerne, wie die Welt wirklich ist,
Aber vergiss niemals, wie sie sein sollte.


More information about the mesa-dev mailing list