nir/system_values: Use the bit size from the load_deref
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 19 Oct 2018 15:51:47 +0000 (10:51 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 26 Oct 2018 16:45:29 +0000 (11:45 -0500)
commit5bfce5fcc24de1ccc9606d6b2ad295fbdcdaa44e
tree97a711a98cabe08c8bc4dfa0d027510515701d8c
parenta3b4cb34589e2f1a6898e88c8d9686cc3e133de3
nir/system_values: Use the bit size from the load_deref

This isn't a great solution for bit-sizes but we don't have a
particularly convenient way to get a bit size from the system value enum
and this keeps the lowering pass from changing it.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/nir/nir_lower_system_values.c