summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600
diff options
context:
space:
mode:
authorVadim Girlin <[email protected]>2013-05-27 01:41:11 +0400
committerVadim Girlin <[email protected]>2013-05-27 01:45:07 +0400
commit880f435a7e1a658b7fb81cc01f47bf5af30a655a (patch)
tree81b184ad4ec859f11c7c33396ba1867b3905c6d4 /src/gallium/drivers/r600
parentff2a6116992a6592747105fb167cab18603361c0 (diff)
r600g/sb: fix peephole optimization for PRED_SETE
Fixes incorrect condition that prevented optimization for PRED_SETE/PRED_SETE_INT. Signed-off-by: Vadim Girlin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r--src/gallium/drivers/r600/sb/sb_peephole.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/sb/sb_peephole.cpp b/src/gallium/drivers/r600/sb/sb_peephole.cpp
index db51ad52370..6373b5c3a61 100644
--- a/src/gallium/drivers/r600/sb/sb_peephole.cpp
+++ b/src/gallium/drivers/r600/sb/sb_peephole.cpp
@@ -56,7 +56,7 @@ void peephole::run_on(container_node* c) {
if (n->is_alu_inst()) {
alu_node *a = static_cast<alu_node*>(n);
- if (a->bc.op_ptr->flags & AF_CC_MASK) {
+ if (a->bc.op_ptr->flags & (AF_PRED | AF_SET | AF_CMOV)) {
optimize_cc_op(a);
} else if (a->bc.op == ALU_OP1_FLT_TO_INT) {