diff options
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index f6f589d71b4..0e30772f419 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp @@ -1655,7 +1655,7 @@ vec4_visitor::visit(ir_expression *ir) emit(CMP(result_dst, op[0], src_reg(0.0f), BRW_CONDITIONAL_NZ)); break; case ir_unop_i2b: - emit(AND(result_dst, op[0], src_reg(1))); + emit(CMP(result_dst, op[0], src_reg(0), BRW_CONDITIONAL_NZ)); break; case ir_unop_trunc: |