From 11a7b93592c22c8165f8fde6395f76778fca452e Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Wed, 13 Jun 2012 15:49:25 -0700 Subject: [PATCH] i965: Add support for ir_unop_f2u to i965 backend. Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp | 1 + src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 1 + src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp b/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp index c39659ff110..983d92e971d 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp @@ -198,6 +198,7 @@ ir_channel_expressions_visitor::visit_leave(ir_assignment *ir) case ir_unop_i2u: case ir_unop_u2i: case ir_unop_f2i: + case ir_unop_f2u: case ir_unop_i2f: case ir_unop_f2b: case ir_unop_b2f: diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index 12745f23102..4b9330bed94 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp @@ -463,6 +463,7 @@ fs_visitor::visit(ir_expression *ir) case ir_unop_i2f: case ir_unop_u2f: case ir_unop_f2i: + case ir_unop_f2u: emit(BRW_OPCODE_MOV, this->result, op[0]); break; diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index bde84202df5..25d3c92f835 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp @@ -1278,6 +1278,7 @@ vec4_visitor::visit(ir_expression *ir) case ir_unop_b2f: case ir_unop_b2i: case ir_unop_f2i: + case ir_unop_f2u: emit(MOV(result_dst, op[0])); break; case ir_unop_f2b: -- 2.30.2