st/glsl_to_tgsi: stop passing pipe_shader_state to st_store_tgsi_in_disk_cache()
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 28 Nov 2017 11:02:17 +0000 (22:02 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 17 Jan 2018 12:43:28 +0000 (23:43 +1100)
commitdbf7e483b4b289fa39154597846df6a2ce10b094
treebf03e6203283291a709159ddcc5c83e02e2adeca
parentc69b0dd6817b3321d0d9ccfd1c3d44b44277c736
st/glsl_to_tgsi: stop passing pipe_shader_state to st_store_tgsi_in_disk_cache()

We can instead just get this from st_*_program.

V2: store tokens to to st_compute_program before attempting to
    write to cache (fixes crash).

Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_program.c
src/mesa/state_tracker/st_shader_cache.c
src/mesa/state_tracker/st_shader_cache.h