From 29a2e9133e415de8b010df5b80db758aaf1007a6 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sun, 30 Jan 2011 07:59:14 +1000 Subject: glsl: Remove extra checks for constant true assignment conditions. These are already stripped by opt_constant_folding.cpp. --- src/glsl/opt_constant_propagation.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/glsl/opt_constant_propagation.cpp') diff --git a/src/glsl/opt_constant_propagation.cpp b/src/glsl/opt_constant_propagation.cpp index 1fff717539..814f6e61f1 100644 --- a/src/glsl/opt_constant_propagation.cpp +++ b/src/glsl/opt_constant_propagation.cpp @@ -400,11 +400,8 @@ ir_constant_propagation_visitor::add_constant(ir_assignment *ir) { acp_entry *entry; - if (ir->condition) { - ir_constant *condition = ir->condition->as_constant(); - if (!condition || !condition->value.b[0]) - return; - } + if (ir->condition) + return; if (!ir->write_mask) return; -- cgit v1.2.3