nir: update nir_gather_info to only mark used array/matrix elements
authorTimothy Arceri <timothy.arceri@collabora.com>
Thu, 27 Oct 2016 01:21:52 +0000 (12:21 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 10 Nov 2016 22:17:07 +0000 (09:17 +1100)
commit7372d2153ab68eefec792a8cb094a6557bdb8b4a
tree905454e19632d625d65c2703646f3a0a492dc82d
parent53d1f4251f58bd858a4fdf3a7564dd16f90165d4
nir: update nir_gather_info to only mark used array/matrix elements

This is based on the code from the GLSL IR pass however unlike the GLSL IR
pass it also supports arrays of arrays.

As well as implementing the logic from the GLSL IR pass we add some
additional intrinsic cases to catch more system values.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir_gather_info.c