Module: Mesa Branch: master Commit: 1f079f9e5879ed9e5f2a951bca305a43e5dc9d1d URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1f079f9e5879ed9e5f2a951bca305a43e5dc9d1d
Author: Christoph Bumiller <e0425...@student.tuwien.ac.at> Date: Sat Dec 8 19:46:14 2012 +0100 nvc0/ir: allow neg,abs modifiers on OP_SET with integer result --- .../drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) 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 e3db4b2..cdc7c0a 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; _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit