mesa: create program resource hash in a single place

Tapani Pälli requested to merge tpalli/mesa:fixing-hash-creation into master

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

Fixes: dd09f1d8 "mesa/st/i965: add a ProgramResourceHash for quicker resource lookup" Signed-off-by: Tapani Pälli

Merge request reports