nir: Use the actual FNV-1a hash for hashing derefs
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 6 Jan 2015 19:13:22 +0000 (11:13 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Jan 2015 15:20:23 +0000 (07:20 -0800)
commit0c0ca8b6aec0842e396b81ef984ad01e00883c3e
tree5c214bfa5578c47073dabdecbe62aa9a379d81c7
parenta3b73ccf6db3efe4ce0eed4c60d1e2709b335cac
nir: Use the actual FNV-1a hash for hashing derefs

We also switch to using loops rather than recursion.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir_lower_locals_to_regs.c
src/glsl/nir/nir_lower_variables.c