Mesa (master): glsl_to_tgsi: fix typo

Bryan Cain bryanc at kemper.freedesktop.org
Sat Aug 20 12:20:59 PDT 2011


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

Author: Bryan Cain <bryancain3 at gmail.com>
Date:   Sat Aug 20 14:17:52 2011 -0500

glsl_to_tgsi: fix typo

---

 src/mesa/state_tracker/st_glsl_to_tgsi.cpp |    2 +-
 1 files changed, 1 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 b211fc6..2885630 100644
--- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@ -1514,7 +1514,7 @@ glsl_to_tgsi_visitor::visit(ir_expression *ir)
             slt_src.negate = ~slt_src.negate;
             emit(ir, TGSI_OPCODE_SLT, result_dst, slt_src, st_src_reg_for_float(0.0));
          } else {
-            emit(ir, TGSI_OPCODE_SNE, result_dst, result_src, st_src_reg_for_float(0.0));
+            emit(ir, TGSI_OPCODE_SNE, result_dst, result_src, st_src_reg_for_int(0));
          }
       } else {
          emit(ir, TGSI_OPCODE_SNE, result_dst, op[0], op[1]);



More information about the mesa-commit mailing list