Mesa (master): glsl-to-tgsi: handle ir_unop_round_even

Christoph Bumiller chrisbmr at kemper.freedesktop.org
Mon Jan 2 20:16:47 UTC 2012


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

Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date:   Mon Jan  2 21:11:45 2012 +0100

glsl-to-tgsi: handle ir_unop_round_even

---

 src/mesa/state_tracker/st_glsl_to_tgsi.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index 1515fc1..eb44df2 100644
--- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@ -1781,6 +1781,9 @@ glsl_to_tgsi_visitor::visit(ir_expression *ir)
    case ir_unop_floor:
       emit(ir, TGSI_OPCODE_FLR, result_dst, op[0]);
       break;
+   case ir_unop_round_even:
+      emit(ir, TGSI_OPCODE_ROUND, result_dst, op[0]);
+      break;
    case ir_unop_fract:
       emit(ir, TGSI_OPCODE_FRC, result_dst, op[0]);
       break;
@@ -1830,7 +1833,7 @@ glsl_to_tgsi_visitor::visit(ir_expression *ir)
          emit(ir, TGSI_OPCODE_OR, result_dst, op[0], op[1]);
          break;
       }
-   case ir_unop_round_even:
+
       assert(!"GLSL 1.30 features unsupported");
       break;
 




More information about the mesa-commit mailing list