llvmpipe: first steps of adding dual source blend support
authorRoland Scheidegger <sroland@vmware.com>
Thu, 7 Feb 2013 20:54:41 +0000 (12:54 -0800)
committerRoland Scheidegger <sroland@vmware.com>
Sat, 9 Feb 2013 00:32:30 +0000 (16:32 -0800)
commit67906f91c9b924306d6bfec5d718b6225390205d
treee7d090d95f33b70f7c5a640d92a899c36ae0ddea
parent8e44f4117a9c73ea336063f7c2fbf4d6a592eeae
llvmpipe: first steps of adding dual source blend support

This adds support of the additional blending factors to the blend function
itself, and also enables testing of it in lp_test_blend (which passes).
Still need to add the glue code of linking fs shader outputs to blend inputs
in llvmpipe, and probably need to add special handling if destination doesn't
include alpha (which lp_test_blend doesn't test).

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/llvmpipe/lp_bld_blend.h
src/gallium/drivers/llvmpipe/lp_bld_blend_aos.c
src/gallium/drivers/llvmpipe/lp_state_fs.c
src/gallium/drivers/llvmpipe/lp_test_blend.c