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>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
41 jobs for !3313 with fixing-hash-creation in 19 minutes and 2 seconds (queued for 3 seconds)
detached
Status Job ID Name Coverage
  Container
passed #1306186
aarch64
arm_build

00:00:19

passed #1306187
aarch64
arm_test

00:00:19

passed #1306182
lava_arm64

00:00:31

passed #1306181
lava_armhf

00:00:19

passed #1306183
x86_build

00:00:30

passed #1306185
x86_build_old

00:00:21

passed #1306184
x86_test-gl

00:00:19

 
  Build
passed #1306189
lava-build:arm64

00:06:14

passed #1306188
lava-build:armhf

00:03:31

passed #1306193
aarch64
meson-arm64

00:11:09

passed #1306192
aarch64
meson-armhf

00:05:57

passed #1306194
meson-clang

00:10:04

passed #1306197
meson-clover

00:08:58

passed #1306198
meson-clover-old-llvm

00:05:48

passed #1306200
meson-i386

00:05:26

passed #1306191
meson-main

00:10:00

passed #1306201
meson-mingw32-x86_64

00:07:21

passed #1306190
meson-testing

00:08:59

passed #1306199
meson-vulkan

00:03:34

passed #1306202
scons

00:05:52

passed #1306203
scons-old-llvm

00:04:52

passed #1306195
scons-swr

00:05:53

passed #1306196
scons-win64

00:08:37

 
  Test
passed #1306221
db410c
arm64_a306_gles2

00:05:18

passed #1306218
mesa-cheza
arm64_a630_gles2

00:01:33

passed #1306220
mesa-cheza
arm64_a630_gles3

00:06:11

passed #1306219
mesa-cheza
arm64_a630_gles31

00:03:59

passed #1306204
lava-sun50i-h6-pine-h64
panfrost-t720-test:arm64

00:08:38

passed #1306205
lava-rk3288-veyron-jaq
panfrost-t760-test:armhf

00:05:23

passed #1306206
lava-rk3399-gru-kevin
panfrost-t860-test:arm64

00:05:14

passed #1306208
piglit-glslparser

00:04:25

passed #1306207
piglit-quick_gl

00:09:29

passed #1306209
piglit-quick_shader

00:05:57

passed #1306210
test-llvmpipe-gles2

00:02:51

passed #1306211
test-softpipe-gles2

00:01:36

passed #1306214
test-softpipe-gles31 1/4

00:02:50

passed #1306212
test-softpipe-gles3 1/2

00:04:59

passed #1306215
test-softpipe-gles31 2/4

00:02:47

passed #1306216
test-softpipe-gles31 3/4

00:04:55

passed #1306217
test-softpipe-gles31 4/4

00:03:13

passed #1306213
test-softpipe-gles3 2/2

00:03:35