nir/lower_system_values: Assert/assume direct var derefs
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 7 Apr 2018 05:34:57 +0000 (22:34 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 23 Jun 2018 04:23:06 +0000 (21:23 -0700)
commitaef4213fca6a8e6d0c6f3b0abeabd878e0c1d351
tree090c535cb139e5f0e8765263a78be4f99589922e
parenta331d7d1cdfdc971f707fb6b1f71edbad622c804
nir/lower_system_values: Assert/assume direct var derefs

System values are never arrays or structs so we can assume a direct var
deref.  This simplifies things a bit and prevents us from accidentally
throwing away an array index.

Suggested-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Acked-by: Rob Clark <robdclark@gmail.com>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir_lower_system_values.c