softpipe: index the correct blend/mask state index
authorBrian Paul <brianp@vmware.com>
Mon, 5 Apr 2010 17:00:52 +0000 (11:00 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 5 Apr 2010 17:00:54 +0000 (11:00 -0600)
commit0eea33b0696cee2cdea1e63a1714cec267d9b990
treeb53ccca8b47bb54f33e184e5fc0e47e77082c7dc
parent1ad1a51f140fcf6eba5a976f01e74e33d2b661d4
softpipe: index the correct blend/mask state index

Need to check pipe_blend_state::independent_blend_enable to determine
which render target/index to use when checking blend enable and colormask
state.

This is part of the fix for piglit/fbo-drawbuffers
src/gallium/drivers/softpipe/sp_quad_blend.c