From: Paul Berry Date: Wed, 13 Jun 2012 22:49:25 +0000 (-0700) Subject: i965: Add support for ir_unop_f2u to i965 backend. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=11a7b93592c22c8165f8fde6395f76778fca452e;p=mesa.git i965: Add support for ir_unop_f2u to i965 backend. Reviewed-by: Kenneth Graunke --- 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: