[Mesa-dev] [PATCH 1/2] anv/pipeline: Only call remove_dead_variables once
Jason Ekstrand
jason at jlekstrand.net
Sat Jan 7 01:29:25 UTC 2017
It can handle multiple modes at a time now so there's no reason to call
it repeatedly.
---
src/intel/vulkan/anv_pipeline.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c
index db35d70..fadc76a 100644
--- a/src/intel/vulkan/anv_pipeline.c
+++ b/src/intel/vulkan/anv_pipeline.c
@@ -157,9 +157,9 @@ anv_shader_compile_to_nir(struct anv_device *device,
assert(exec_list_length(&nir->functions) == 1);
entry_point->name = ralloc_strdup(entry_point, "main");
- nir_remove_dead_variables(nir, nir_var_shader_in);
- nir_remove_dead_variables(nir, nir_var_shader_out);
- nir_remove_dead_variables(nir, nir_var_system_value);
+ nir_remove_dead_variables(nir, nir_var_shader_in |
+ nir_var_shader_out |
+ nir_var_system_value);
nir_validate_shader(nir);
/* Now that we've deleted all but the main function, we can go ahead and
--
2.5.0.400.gff86faf
More information about the mesa-dev
mailing list