compiler: Add a new STATE_VAR_ADVANCED_BLENDING_MODE built-in uniform.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 28 Jun 2016 16:02:42 +0000 (09:02 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 26 Aug 2016 02:22:10 +0000 (19:22 -0700)
commite299661166a77c3cfc8a59c874bdb1e2179aa160
treeb3a5181aba218d4c5d611d13297eacde693cce8a
parentacf57fcf7ff7e60c3550da7b6dda7ad8b69195bd
compiler: Add a new STATE_VAR_ADVANCED_BLENDING_MODE built-in uniform.

This will be used for emulating GL_KHR_advanced_blend_equation features
in shader code.  We'll pass in the blending mode that's in use, and use
that in (effectively) a switch statement in the shader.

v2: Use the new _AdvancedBlendMode field.

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