[Mesa-dev] [PATCH shader-db] run: use setenv() for setting GALLIUM_THREAD=0
Marek Olšák
maraeo at gmail.com
Fri May 19 10:18:48 UTC 2017
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Fri, May 19, 2017 at 11:47 AM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> When GALLIUM_THREAD is already set in the environment, addenv()
> will end up by setting GALLIUM_THREAD="0,0" which mesa doesn't
> understand for some obvious reasons. Instead, use setenv()
> because we want to force this behaviour in all situations.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
> run.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/run.c b/run.c
> index f9bc86a..c001447 100644
> --- a/run.c
> +++ b/run.c
> @@ -393,10 +393,10 @@ main(int argc, char **argv)
> setenv("allow_glsl_extension_directive_midshader", "true", 1);
> setenv("shader_precompile", "true", 1);
> setenv("MESA_GLSL_CACHE_DISABLE", "true", 1);
> + setenv("GALLIUM_THREAD", "0", 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);
> --
> 2.13.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list