st/glsl_to_nir: remove reallocation of sampler/image location
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 23 Jan 2018 21:48:49 +0000 (08:48 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 25 Jan 2018 02:27:22 +0000 (13:27 +1100)
commite77679143261bc19209b927a0fbc60eb46423016
treee5aba6f2ec6bb19f07eed8e7973eaa344ce8247b
parent62b68d05e7e704332ff5f5c890354859774f17e2
st/glsl_to_nir: remove reallocation of sampler/image location

As far as I can tell this always just reassigns the same value.

Also as we don't curretly store UniformHash in the shader cache
removing this will help with adding a shader cache to gallium
nir drivers.

Reviewed-by: Rob Clark <robdclark@gmail.com>
src/mesa/state_tracker/st_glsl_to_nir.cpp