mesa: create program resource hash in a single place
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 tapani.palli@intel.com