st/mesa: don't load cached TGSI shaders on demand
authorMarek Olšák <marek.olsak@amd.com>
Wed, 31 May 2017 11:07:04 +0000 (13:07 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 5 Jun 2017 16:25:57 +0000 (18:25 +0200)
commit2ec50f98a9be9ee94aa0dd82fb7560c00153b03f
tree4f2d5c06ce4bbedfcb34e561ce81bf89e40971aa
parentbb0452442a77570fce529cbb3d9fd99a94f3b50e
st/mesa: don't load cached TGSI shaders on demand

This fixes a performance issue with the shader cache that delayed Gallium
shader create calls until draw calls.

I'd like this in stable, but it's not a showstopper.

Cc: 17.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/state_tracker/st_shader_cache.c