diff --git a/src/compiler/glsl/opt_tree_grafting.cpp b/src/compiler/glsl/opt_tree_grafting.cpp index 13ed6963696..b7f5e5b47aa 100644 --- a/src/compiler/glsl/opt_tree_grafting.cpp +++ b/src/compiler/glsl/opt_tree_grafting.cpp @@ -177,8 +177,7 @@ ir_tree_grafting_visitor::check_graft(ir_instruction *ir, ir_variable *var) ir_visitor_status ir_tree_grafting_visitor::visit_leave(ir_assignment *ir) { - if (do_graft(&ir->rhs) || - do_graft(&ir->condition)) + if (do_graft(&ir->rhs)) return visit_stop; /* If this assignment updates a variable used in the assignment