swrast: fix multiple color buffer writing
authorBrian Paul <brianp@vmware.com>
Mon, 16 Feb 2015 18:23:06 +0000 (11:23 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 19 Feb 2015 22:36:59 +0000 (15:36 -0700)
commit89c96afe3c0acf8f2fccaf02da02945afe8ba5f3
treedc35999130f45e4bf28bc9c9476ff1a4ee66f130
parentfbac86ad2a735776a483cf1bb3827c4459f82e65
swrast: fix multiple color buffer writing

If a fragment program wrote to more than one color buffer, the
first fragment color got replicated to all dest buffers.  This
fixes 5 piglit FBO tests, including fbo-drawbuffers-arbfp.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=45348
Cc: "10.4, 10.5" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/swrast/s_span.c