nv50/ir: Fold sat into mad
authorRoy Spliet <rspliet@eclipso.eu>
Fri, 2 Jan 2015 02:28:50 +0000 (03:28 +0100)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 2 Jan 2015 02:40:35 +0000 (21:40 -0500)
commitc3260f8d98fa5acf3f9d7b47bc0213a0928ff215
tree719d0bc320a5941eba47a8cab0bff0a4fe7d1f2e
parent9e94b87b6012450d714edc6d0c46b15a89d5ce61
nv50/ir: Fold sat into mad

The mad instruction emitter already supported the saturate modifier,
but the ModifierFolding pass never tried folding cvt sat operations
in for NV50.

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