From a74300c7ff256b417079134f7bd9aea91153025b Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Thu, 18 May 2017 15:00:40 +1000 Subject: mesa: add an env var to force cache fallback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For the gallium state tracker a tgsi binary may have been evicted from the cache to make space. In this case we would take the fallback path and recompile/link the shader. On i965 there are a number of reasons we can get to the program upload stage and have neither IR nor a valid cached binary. For example the binary may have been evicted from the cache or we need a variant that wasn't previously cached. This environment variable enables us to force the fallback path that would be taken in these cases and makes it easier to debug these otherwise hard to reproduce scenarios. Reviewed-by: Nicolai Hähnle --- docs/shading.html | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs/shading.html') diff --git a/docs/shading.html b/docs/shading.html index 7e3d2e4fced..c789102e641 100644 --- a/docs/shading.html +++ b/docs/shading.html @@ -50,6 +50,8 @@ execution. These are generally used for debugging. The filenames will be "shader_X.vert" or "shader_X.frag" where X the shader ID.
  • cache_info - print debug information about shader cache +
  • cache_fb - force cached shaders to be ignored and do a full + recompile via the fallback path
  • uniform - print message to stdout when glUniform is called
  • nopvert - force vertex shaders to be a simple shader that just transforms the vertex position with ftransform() and passes through the color and -- cgit v1.2.3