nv50/ir: only propagate saturate up if some actual folding took place
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 8 May 2015 22:54:08 +0000 (18:54 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 8 May 2015 22:56:56 +0000 (18:56 -0400)
commitc4ac09e30e2520b0ac6d403eb6c77f23e7f24f49
treefd5bc998e5bc326b10d4306eaad026e447041bd7
parent3bdbc1e436828606d0b549b9480e7cc28b42d159
nv50/ir: only propagate saturate up if some actual folding took place

The former logic would copy the saturate up to any mul with an immediate
if there was a subsequent mul with a saturate. However we only want to
do that if we collapsed 2 muls by multiplying their immediates (or were
able to put the immediate in as a post-multiplier).

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp