mesa: create program resource hash in a single place
authorTapani Pälli <tapani.palli@intel.com>
Tue, 7 Jan 2020 15:56:26 +0000 (17:56 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 9 Jan 2020 05:28:13 +0000 (07:28 +0200)
commit1e29ff7b3dab02aa8cf87144e38b10d2c9e19813
tree59bf8048f0b2f91081322de50a37e97ff2f61d20
parentee9879335e6c798dff4cacef9096265912268ce4
mesa: create program resource hash in a single place

This is a cleanup but also a fix for commit dd09f1d806b. In case of
i965 we did not actually create hash for cached shader programs.

Fixes: dd09f1d806b "mesa/st/i965: add a ProgramResourceHash for quicker resource lookup"
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/drivers/dri/i965/brw_link.cpp
src/mesa/program/ir_to_mesa.cpp
src/mesa/state_tracker/st_glsl_to_nir.cpp
src/mesa/state_tracker/st_glsl_to_tgsi.cpp