summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2022-01-14 18:39:15 -0800
committerMarge Bot <emma+marge@anholt.net>2022-02-11 17:25:33 +0000
commitd07551ad4e8f81d6eaca5a5f563ae4cd3409e20b (patch)
tree08b29255647fad191665d0a95c551bc9216cacb7
parent41f6b42b08ce656c7f4d1ac4736c36896c33f9fd (diff)
glsl: Don't split arrays in the condition of an assignment
At this point, this should always be NULL. v2: Fix bad rebase. Reviewed-by: Matt Turner <mattst88@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14573>
-rw-r--r--src/compiler/glsl/opt_array_splitting.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/compiler/glsl/opt_array_splitting.cpp b/src/compiler/glsl/opt_array_splitting.cpp
index 7e147ca89e3..63b1a01290c 100644
--- a/src/compiler/glsl/opt_array_splitting.cpp
+++ b/src/compiler/glsl/opt_array_splitting.cpp
@@ -435,11 +435,6 @@ ir_array_splitting_visitor::visit_leave(ir_assignment *ir)
handle_rvalue(&ir->rhs);
ir->rhs->accept(this);
- if (ir->condition) {
- handle_rvalue(&ir->condition);
- ir->condition->accept(this);
- }
-
return visit_continue;
}