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

Author: Christoph Bumiller <e0425...@student.tuwien.ac.at>
Date:   Sat Jan  7 22:12:59 2012 +0100

nv50/ir/tgsi: translate SNE as unordered comparison

Fixes isnan().

---

 .../drivers/nv50/codegen/nv50_ir_from_tgsi.cpp     |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_from_tgsi.cpp 
b/src/gallium/drivers/nv50/codegen/nv50_ir_from_tgsi.cpp
index 56182c3..6678398 100644
--- a/src/gallium/drivers/nv50/codegen/nv50_ir_from_tgsi.cpp
+++ b/src/gallium/drivers/nv50/codegen/nv50_ir_from_tgsi.cpp
@@ -426,6 +426,7 @@ nv50_ir::CondCode Instruction::getSetCond() const
    case TGSI_OPCODE_USEQ:
       return CC_EQ;
    case TGSI_OPCODE_SNE:
+      return CC_NEU;
    case TGSI_OPCODE_USNE:
       return CC_NE;
    case TGSI_OPCODE_SFL:

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to