From ca03372657f73a30b7b2f827d6f76473e57487ee Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Sat, 7 Jan 2012 22:12:59 +0100 Subject: nv50/ir/tgsi: translate SNE as unordered comparison Fixes isnan(). --- src/gallium/drivers/nv50/codegen/nv50_ir_from_tgsi.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium') 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 56182c39cf7..6678398cfb2 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: -- cgit v1.2.3