summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2017-10-26 00:04:37 -0400
committerNicolai Hähnle <nicolai.haehnle@amd.com>2018-03-14 09:04:05 +0100
commit5e79d6a81918c4b2f9a2cfdd97cd69168f4fdb3d (patch)
treec1b126909273ae3d622c559fa8b8f4b2a88528d2
parentd0fad39b423b01f19cd7151fcd44dc629dc67927 (diff)
HACK: disable NIR-level optimizations
-rw-r--r--src/amd/vulkan/radv_shader.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c
index 3eddc089d4..c57575d433 100644
--- a/src/amd/vulkan/radv_shader.c
+++ b/src/amd/vulkan/radv_shader.c
@@ -129,26 +129,26 @@ radv_optimize_nir(struct nir_shader *shader)
NIR_PASS_V(shader, nir_lower_alu_to_scalar);
NIR_PASS_V(shader, nir_lower_phis_to_scalar);
- NIR_PASS(progress, shader, nir_copy_prop);
- NIR_PASS(progress, shader, nir_opt_remove_phis);
- NIR_PASS(progress, shader, nir_opt_dce);
- if (nir_opt_trivial_continues(shader)) {
- progress = true;
- NIR_PASS(progress, shader, nir_copy_prop);
- NIR_PASS(progress, shader, nir_opt_remove_phis);
- NIR_PASS(progress, shader, nir_opt_dce);
- }
- NIR_PASS(progress, shader, nir_opt_if);
- NIR_PASS(progress, shader, nir_opt_dead_cf);
- NIR_PASS(progress, shader, nir_opt_cse);
- NIR_PASS(progress, shader, nir_opt_peephole_select, 8);
- NIR_PASS(progress, shader, nir_opt_algebraic);
- NIR_PASS(progress, shader, nir_opt_constant_folding);
- NIR_PASS(progress, shader, nir_opt_undef);
- NIR_PASS(progress, shader, nir_opt_conditional_discard);
- if (shader->options->max_unroll_iterations) {
- NIR_PASS(progress, shader, nir_opt_loop_unroll, 0);
- }
+// NIR_PASS(progress, shader, nir_copy_prop);
+// NIR_PASS(progress, shader, nir_opt_remove_phis);
+// NIR_PASS(progress, shader, nir_opt_dce);
+// if (nir_opt_trivial_continues(shader)) {
+// progress = true;
+// NIR_PASS(progress, shader, nir_copy_prop);
+// NIR_PASS(progress, shader, nir_opt_remove_phis);
+// NIR_PASS(progress, shader, nir_opt_dce);
+// }
+// NIR_PASS(progress, shader, nir_opt_if);
+// NIR_PASS(progress, shader, nir_opt_dead_cf);
+// NIR_PASS(progress, shader, nir_opt_cse);
+// NIR_PASS(progress, shader, nir_opt_peephole_select, 8);
+// NIR_PASS(progress, shader, nir_opt_algebraic);
+// NIR_PASS(progress, shader, nir_opt_constant_folding);
+// NIR_PASS(progress, shader, nir_opt_undef);
+// NIR_PASS(progress, shader, nir_opt_conditional_discard);
+// if (shader->options->max_unroll_iterations) {
+// NIR_PASS(progress, shader, nir_opt_loop_unroll, 0);
+// }
} while (progress);
NIR_PASS(progress, shader, nir_opt_shrink_load);