nir/dead_variables: Configurably work with any variable mode
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 25 Mar 2016 21:26:11 +0000 (14:26 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 13 Apr 2016 22:45:10 +0000 (15:45 -0700)
commitb63a98b1211d22f759ae9c80b2270fe2d3b2639e
tree7f1e411c91ee2ad01b0df3fdddf48a3168d9f2ac
parent505a8fbdf8f2b6d2aaab5a04244cd3329f9dbe97
nir/dead_variables: Configurably work with any variable mode

The old version of the pass only worked on globals and locals and always
left inputs, outputs, uniforms, etc. alone.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir.h
src/compiler/nir/nir_remove_dead_variables.c
src/gallium/drivers/freedreno/ir3/ir3_nir.c
src/gallium/drivers/vc4/vc4_program.c
src/mesa/drivers/dri/i965/brw_nir.c