Mesa (master): nv50/ir/tgsi: translate SNE as unordered comparison

Christoph Bumiller chrisbmr at kemper.freedesktop.org
Mon Jan 9 23:44:38 UTC 2012


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

Author: Christoph Bumiller <e0425955 at 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:




More information about the mesa-commit mailing list