mesa: Keep a computed value for dual source blend func with each buffer.
authorEric Anholt <eric@anholt.net>
Thu, 17 May 2012 22:31:40 +0000 (15:31 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 23 May 2012 17:45:43 +0000 (10:45 -0700)
commit175ad8050e3337f7065306017ea4eb8eae599f6d
tree9aa14587f323a5b4db3cb130866f50686165c241
parent68216f35814ab8d292f37b8c0fa0a5f181b7f20d
mesa: Keep a computed value for dual source blend func with each buffer.

The i965 driver needed this as well for hardware setup, so instead of
duplicating the logic, just save it off.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/blend.c
src/mesa/main/context.c
src/mesa/main/mtypes.h