OSDN Git Service

mesa/glsl: add cache_fallback flag to gl_shader_program_data
authorTimothy Arceri <timothy.arceri@collabora.com>
Sun, 20 Nov 2016 01:47:00 +0000 (12:47 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 17 Feb 2017 00:18:43 +0000 (11:18 +1100)
commit2f19accc5ecdff29c9300f0eceb420c0b1538b24
treef7356a6f806c81a7a79112455638eea0bcc07d27
parente3adde023b73cbee1423078163e925dc400078e9
mesa/glsl: add cache_fallback flag to gl_shader_program_data

This will allow us to skip certain things when falling back to
a full recompile on a cache miss such as avoiding reinitialising
uniforms.

In this change we use it to avoid reading the program metadata
from the cache and skipping linking during a fallback.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/compiler/glsl/shader_cache.cpp
src/mesa/main/mtypes.h