nvc0/ir: allow neg,abs modifiers on OP_SET with integer result
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 8 Dec 2012 18:46:14 +0000 (19:46 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 8 Dec 2012 21:47:00 +0000 (22:47 +0100)
src/gallium/drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp

index e3db4b2318d9b1dc46302e83d0fc3bba3c0c4aa2..cdc7c0aba5789b695199fe91df39087a7cd7147c 100644 (file)
@@ -481,6 +481,10 @@ TargetNVC0::isModSupported(const Instruction *insn, int s, Modifier mod) const
       case OP_OR:
       case OP_XOR:
          break;
+      case OP_SET:
+         if (insn->sType != TYPE_F32)
+            return false;
+         break;
       case OP_ADD:
          if (mod.abs())
             return false;