projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2812622
)
radv: remove dead shared variables
author
Daniel Schürmann
<daniel@schuermann.dev>
Tue, 17 Sep 2019 16:24:06 +0000
(18:24 +0200)
committer
Daniel Schürmann
<daniel@schuermann.dev>
Thu, 19 Sep 2019 10:10:00 +0000
(12:10 +0200)
LLVM does this anyway, but for ACO we need to do it in NIR.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_shader.c
patch
|
blob
|
history
diff --git
a/src/amd/vulkan/radv_shader.c
b/src/amd/vulkan/radv_shader.c
index 918fc82469f36c0a1258ac639d2d7957f6a27e2a..c213b83557ad35019ffb1b344ebdca1cdf21b7fd 100644
(file)
--- 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);