Mesa (master): radv: remove dead shared variables
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Sep 19 10:33:40 UTC 2019
Module: Mesa
Branch: master
Commit: 8b78cce433b09fe78cde05d740075fb8832e44dc
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8b78cce433b09fe78cde05d740075fb8832e44dc
Author: Daniel Schürmann <daniel at schuermann.dev>
Date: Tue Sep 17 18:24:06 2019 +0200
radv: remove dead shared variables
LLVM does this anyway, but for ACO we need to do it in NIR.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
---
src/amd/vulkan/radv_shader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c
index 918fc82469f..c213b83557a 100644
--- a/src/amd/vulkan/radv_shader.c
+++ b/src/amd/vulkan/radv_shader.c
@@ -425,7 +425,7 @@ radv_shader_compile_to_nir(struct radv_device *device,
NIR_PASS_V(nir, nir_lower_input_attachments, true);
NIR_PASS_V(nir, nir_remove_dead_variables,
- nir_var_shader_in | nir_var_shader_out | nir_var_system_value);
+ nir_var_shader_in | nir_var_shader_out | nir_var_system_value | nir_var_mem_shared);
NIR_PASS_V(nir, nir_propagate_invariant);
More information about the mesa-commit
mailing list