diff options
author | Grazvydas Ignotas <[email protected]> | 2017-03-26 19:28:38 +0300 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-27 09:10:16 +1100 |
commit | f2d4d116113c8eddf7e8f372d466510c31d3dba4 (patch) | |
tree | 5ecbb28740685ec33f88fcc16e4539f156a76bc6 /src/compiler/glsl/glcpp/glcpp-parse.y | |
parent | bdf035ea6f784b90a6cbfd4ce16f3188ab15b2d3 (diff) |
glsl/shader_cache: restore evicted shader keys
Even though the programs themselves stay in cache and are loaded, the
shader keys can be evicted separately. If that happens, unnecessary
compiles are caused that waste time, and no matter how many times the
program is re-run, performance never recovers to the levels of first
hot cache run. To deal with this, we need to refresh the shader keys
of shaders that were recompiled.
An easy way to currently observe this is running Deux Ex, then piglit
and Deux Ex again, or deleting just the cache index. The later is
causing over a minute of lost time on all later Deux Ex runs, with this
patch it returns to normal after 1 run.
Signed-off-by: Grazvydas Ignotas <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler/glsl/glcpp/glcpp-parse.y')
0 files changed, 0 insertions, 0 deletions