nv50/ir: Add support for MAD 4-byte opcode
authorRoy Spliet <rspliet@eclipso.eu>
Fri, 6 Feb 2015 21:46:54 +0000 (22:46 +0100)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 10 Feb 2015 13:01:46 +0000 (08:01 -0500)
commitfb63df22151fcf6a2fdbc739bd9a84a77bff0270
treebcbe056e11d55989caab9ece0e32b315bc8ce977
parent354206f407fffd5f0b553dcbcc46b178d0b22c47
nv50/ir: Add support for MAD 4-byte opcode

Add emission rules for negative and saturate flags for MAD 4-byte opcodes,
and get rid of some of the constraints. Obviously tested with a wide variety
of shaders.

V2: Document MAD as supported short form
V3: Split up IMM from short-form modifiers

Signed-off-by: Roy Spliet <rspliet@eclipso.eu>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_target_nv50.cpp