From 1f079f9e5879ed9e5f2a951bca305a43e5dc9d1d Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Sat, 8 Dec 2012 19:46:14 +0100 Subject: nvc0/ir: allow neg,abs modifiers on OP_SET with integer result --- src/gallium/drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gallium/drivers/nvc0') diff --git a/src/gallium/drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp b/src/gallium/drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp index e3db4b2318d..cdc7c0aba57 100644 --- a/src/gallium/drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp +++ b/src/gallium/drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp @@ -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; -- cgit v1.2.3