Mesa (master): i965: Add support for ir_unop_f2u to i965 backend.

Paul Berry stereotype441 at kemper.freedesktop.org
Fri Jun 15 16:12:39 UTC 2012


Module: Mesa
Branch: master
Commit: 11a7b93592c22c8165f8fde6395f76778fca452e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=11a7b93592c22c8165f8fde6395f76778fca452e

Author: Paul Berry <stereotype441 at gmail.com>
Date:   Wed Jun 13 15:49:25 2012 -0700

i965: Add support for ir_unop_f2u to i965 backend.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 .../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(+), 0 deletions(-)

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 c39659f..983d92e 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 12745f2..4b9330b 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 bde8420..25d3c92 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:




More information about the mesa-commit mailing list