From: Christoph Bumiller Date: Sat, 8 Dec 2012 18:46:14 +0000 (+0100) Subject: nvc0/ir: allow neg,abs modifiers on OP_SET with integer result X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f079f9e5879ed9e5f2a951bca305a43e5dc9d1d;p=mesa.git nvc0/ir: allow neg,abs modifiers on OP_SET with integer result --- 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;