i965: Add support for ir_unop_f2u to i965 backend.
authorPaul Berry <stereotype441@gmail.com>
Wed, 13 Jun 2012 22:49:25 +0000 (15:49 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 15 Jun 2012 15:58:55 +0000 (08:58 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp

index c39659ff1101fbdd89f9cacd20e395a7be5c3867..983d92e971db24cb30708c6b4b407b2dc1462283 100644 (file)
@@ -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:
index 12745f23102c835fa0e19b2bcdd77f9b5c73e327..4b9330bed94c656ccaa24a5dc5eb68691c53ba03 100644 (file)
@@ -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;
 
index bde84202df501ca32ab681d35960f5c23d3c75c7..25d3c92f8354a2c8a5df52a42760d085c65de5c2 100644 (file)
@@ -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: