diff options
author | Jason Ekstrand <[email protected]> | 2016-03-25 14:26:11 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-04-13 15:45:10 -0700 |
commit | b63a98b1211d22f759ae9c80b2270fe2d3b2639e (patch) | |
tree | 7f1e411c91ee2ad01b0df3fdddf48a3168d9f2ac /src/mesa/drivers | |
parent | 505a8fbdf8f2b6d2aaab5a04244cd3329f9dbe97 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_nir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_nir.c b/src/mesa/drivers/dri/i965/brw_nir.c index 932979a7719..fb7fa235861 100644 --- a/src/mesa/drivers/dri/i965/brw_nir.c +++ b/src/mesa/drivers/dri/i965/brw_nir.c @@ -473,7 +473,7 @@ brw_preprocess_nir(const struct brw_compiler *compiler, nir_shader *nir) /* Get rid of split copies */ nir = nir_optimize(nir, is_scalar); - OPT(nir_remove_dead_variables); + OPT(nir_remove_dead_variables, nir_var_local); return nir; } |