From 6408b0295f5c8be6fea891a025d79752484721b6 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 9 Aug 2011 10:57:09 -0700 Subject: [PATCH] i965/vs: Fix implementation of ir_unop_any. We were inheriting whatever previous predicate existed. --- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index 049af6c3992..fde1d67759a 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp @@ -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)); -- 2.30.2