aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/glsl/opt_constant_propagation.cpp
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-02-07 07:14:23 +0000
committermarha <marha@users.sourceforge.net>2011-02-07 07:14:23 +0000
commit53bf2508fe3d5bd7889ccf4817fcd2bcc531d6ae (patch)
tree8269551248a104f428f6245fba51d659775489e2 /mesalib/src/glsl/opt_constant_propagation.cpp
parent39522c7dc587b335b0e0e00fc68f98e6a7a5c7bd (diff)
downloadvcxsrv-53bf2508fe3d5bd7889ccf4817fcd2bcc531d6ae.tar.gz
vcxsrv-53bf2508fe3d5bd7889ccf4817fcd2bcc531d6ae.tar.bz2
vcxsrv-53bf2508fe3d5bd7889ccf4817fcd2bcc531d6ae.zip
mesa git update 7 Feb 2011
Diffstat (limited to 'mesalib/src/glsl/opt_constant_propagation.cpp')
-rw-r--r--mesalib/src/glsl/opt_constant_propagation.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/mesalib/src/glsl/opt_constant_propagation.cpp b/mesalib/src/glsl/opt_constant_propagation.cpp
index 1fff71753..814f6e61f 100644
--- a/mesalib/src/glsl/opt_constant_propagation.cpp
+++ b/mesalib/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;