gallium/softpipe: Don't clobber dest color/alpha before masking.
authorYounes Manton <younes.m@gmail.com>
Fri, 22 Jul 2011 00:10:34 +0000 (20:10 -0400)
committerYounes Manton <younes.m@gmail.com>
Sat, 23 Jul 2011 21:13:44 +0000 (17:13 -0400)
commitac6455e9a25f5472c96d580e3d2389f1ed1c0619
treee36a1302b832a8ac0bdf505b3be96c0e126e6cfd
parent6c8f1f483a999005cae1da5b54cc8ca1904e7ce7
gallium/softpipe: Don't clobber dest color/alpha before masking.

The blend_quad function clobbers the actual render target color/alpha
values while applying the destination blend factor, which results in
restoring the wrong value during the masking stage for write-disabled
channels.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/softpipe/sp_quad_blend.c