mesa: Track the current advanced blending mode.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 28 Jun 2016 15:17:57 +0000 (08:17 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 26 Aug 2016 02:22:09 +0000 (19:22 -0700)
commit0745e039a2a9d6763f9a1a241fba18bdbd74ad85
tree2f92d5c1178c839da1d3d05e1500655d975e9473
parent74837e3e913f18954ae596f305f42bf71cf6ba78
mesa: Track the current advanced blending mode.

This will be useful for a number of things:
- Checking the current advanced blending mode against the shader's
  blend_support_* qualifiers.
- Disabling hardware blending when emulating advanced blending.
- Uploading the current advanced blending mode as a state var.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/main/blend.c
src/mesa/main/mtypes.h