i965/vs: Fix implementation of ir_unop_any.

We were inheriting whatever previous predicate existed.
This commit is contained in:
Eric Anholt
2011-08-09 10:57:09 -07:00
parent 7b91eefe7c
commit 6408b0295f
@@ -998,7 +998,9 @@ vec4_visitor::visit(ir_expression *ir)
break;
case ir_unop_any:
emit(BRW_OPCODE_CMP, dst_null_d(), op[0], src_reg(0));
inst = emit(BRW_OPCODE_CMP, dst_null_d(), op[0], src_reg(0));
inst->conditional_mod = BRW_CONDITIONAL_NZ;
emit(BRW_OPCODE_MOV, result_dst, src_reg(0));
inst = emit(BRW_OPCODE_MOV, result_dst, src_reg(1));