Mesa (master): gallium: Add support for ir_unop_f2u to tgsi backend.
Paul Berry
stereotype441 at kemper.freedesktop.org
Fri Jun 15 16:12:39 UTC 2012
Module: Mesa
Branch: master
Commit: 1be766111005e483d56ac194c224123e72ce9831
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1be766111005e483d56ac194c224123e72ce9831
Author: Paul Berry <stereotype441 at gmail.com>
Date: Wed Jun 13 15:50:06 2012 -0700
gallium: Add support for ir_unop_f2u to tgsi backend.
Reviewed-by: José Fonseca <jfonseca at vmware.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index 347a22f..5802b52 100644
--- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@ -1762,6 +1762,12 @@ glsl_to_tgsi_visitor::visit(ir_expression *ir)
else
emit(ir, TGSI_OPCODE_TRUNC, result_dst, op[0]);
break;
+ case ir_unop_f2u:
+ if (native_integers)
+ emit(ir, TGSI_OPCODE_F2U, result_dst, op[0]);
+ else
+ emit(ir, TGSI_OPCODE_TRUNC, result_dst, op[0]);
+ break;
case ir_unop_bitcast_f2i:
case ir_unop_bitcast_f2u:
case ir_unop_bitcast_i2f:
More information about the mesa-commit
mailing list