st/shader_cache: restore num_tgsi_tokens when loading from cache
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 26 Jan 2018 00:56:50 +0000 (11:56 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 26 Jan 2018 23:06:16 +0000 (10:06 +1100)
commit041b18cf23a0acf7b0eddf63cd7a2a10192432a1
tree0a22b6330cbd819b3d946ce702215346a2ee7af1
parent17423c993d0b083c7a77a404b85788687f5efe36
st/shader_cache: restore num_tgsi_tokens when loading from cache

Without this we will fail to correctly serialise programs when
using glGetProgramBinary() if the program was retrieved from
the disk cache rather than freshly compiled.

Fixes: c69b0dd6817b "st/glsl_to_tgsi: store num_tgsi_tokens in st_*_program"
Reviewed-by: Gert Wollny <gw.fossdev@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104762
src/mesa/state_tracker/st_shader_cache.c