freedreno/a3xx/compiler: handle saturate on dst
authorRob Clark <robclark@freedesktop.org>
Tue, 20 Aug 2013 17:51:35 +0000 (13:51 -0400)
committerRob Clark <robclark@freedesktop.org>
Sat, 24 Aug 2013 17:23:32 +0000 (13:23 -0400)
commitaee1ed708ac5fa4a5db47dc84be4aae00af9d0f0
tree2c51d1c1a3f44679cbd90a34ada1a81225da30ab
parent8b250bb8aa31b781681491b1d2a8baa15a024c1c
freedreno/a3xx/compiler: handle saturate on dst

Sometimes things other than color dst need saturating, like if there is
a 'clamp(foo, 0.0, 1.0)'.  So for saturated dst add the extra
instructions to fix up dst.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a3xx/fd3_compiler.c