summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimur Kristóf <timur.kristof@gmail.com>2024-03-28 20:27:45 +0100
committerMarge Bot <emma+marge@anholt.net>2024-03-28 23:44:03 +0000
commit476a42c02c21d7221b6302c4f67937edcfff8724 (patch)
treed19a5728f5418b81621513cb7f07ab325a13b6bf
parent315cacddbda1b14a70f60126ad7577b905468d43 (diff)
radv: Call nir_opt_dead_cf in radv_optimize_nir_algebraic.
In case lowering passes added dead CF. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28408>
-rw-r--r--src/amd/vulkan/radv_shader.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c
index 7bc958c6e96..69bb13e942c 100644
--- a/src/amd/vulkan/radv_shader.c
+++ b/src/amd/vulkan/radv_shader.c
@@ -201,6 +201,7 @@ radv_optimize_nir_algebraic(nir_shader *nir, bool opt_offsets)
NIR_PASS(_, nir, nir_opt_constant_folding);
NIR_PASS(_, nir, nir_opt_cse);
NIR_PASS(more_algebraic, nir, nir_opt_algebraic);
+ NIR_PASS(_, nir, nir_opt_dead_cf);
}
if (opt_offsets) {