From 97ffca80a80cdb030d7c80f52be7351e66274b63 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 14 Jan 2022 18:35:11 -0800 Subject: [PATCH] glsl: Don't dead-built-in varying eliminate in the condition of an assignment At this point, this should always be NULL. Reviewed-by: Matt Turner Part-of: --- src/compiler/glsl/opt_dead_builtin_varyings.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/compiler/glsl/opt_dead_builtin_varyings.cpp b/src/compiler/glsl/opt_dead_builtin_varyings.cpp index 47d95df55f5..981cedf0a78 100644 --- a/src/compiler/glsl/opt_dead_builtin_varyings.cpp +++ b/src/compiler/glsl/opt_dead_builtin_varyings.cpp @@ -489,7 +489,6 @@ public: virtual ir_visitor_status visit_leave(ir_assignment *ir) { handle_rvalue(&ir->rhs); - handle_rvalue(&ir->condition); /* We have to use set_lhs when changing the LHS of an assignment. */ ir_rvalue *lhs = ir->lhs;