Module: Mesa
Branch: master
Commit: 18e70edd8c283463b2a5c8a22b6a5ea9a8d8fcd3
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=18e70edd8c283463b2a5c8a22b6a5ea9a8d8fcd3

Author: Bas Nieuwenhuizen <b...@basnieuwenhuizen.nl>
Date:   Sun Jan  8 22:39:36 2017 +0100

radv: Only call remove_dead_variables once.

Port of 43e0b0d4b255d910616c10e3e01bfec5db469e0e
"anv/pipeline: Only call remove_dead_variables once"

Signed-off-by: Bas Nieuwenhuizen <ba...@google.com>
Reviewed-by: Timothy Arceri <timothy.arc...@collabora.com>

---

 src/amd/vulkan/radv_pipeline.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index 61af01c..03603f5 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -219,9 +219,9 @@ radv_shader_compile_to_nir(struct radv_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);
 
                nir_lower_system_values(nir);

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to