From: Vadim Girlin Date: Sun, 26 May 2013 21:41:11 +0000 (+0400) Subject: r600g/sb: fix peephole optimization for PRED_SETE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=880f435a7e1a658b7fb81cc01f47bf5af30a655a;p=mesa.git 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 --- 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(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) {