aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/program/prog_statevars.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-06-28 09:02:42 -0700
committerKenneth Graunke <[email protected]>2016-08-25 19:22:10 -0700
commite299661166a77c3cfc8a59c874bdb1e2179aa160 (patch)
treeb3a5181aba218d4c5d611d13297eacde693cce8a /src/mesa/program/prog_statevars.h
parentacf57fcf7ff7e60c3550da7b6dda7ad8b69195bd (diff)
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 <[email protected]> Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src/mesa/program/prog_statevars.h')
-rw-r--r--src/mesa/program/prog_statevars.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/program/prog_statevars.h b/src/mesa/program/prog_statevars.h
index e716d9070a2..7fecb37212d 100644
--- a/src/mesa/program/prog_statevars.h
+++ b/src/mesa/program/prog_statevars.h
@@ -130,6 +130,11 @@ typedef enum gl_state_index_ {
STATE_FB_WPOS_Y_TRANSFORM, /**< (1, 0, -1, height) if a FBO is bound, (-1, height, 1, 0) otherwise */
STATE_TCS_PATCH_VERTICES_IN, /**< gl_PatchVerticesIn for TCS (integer) */
STATE_TES_PATCH_VERTICES_IN, /**< gl_PatchVerticesIn for TES (integer) */
+ /**
+ * A single enum gl_blend_support_qualifier value representing the
+ * currently active advanced blending equation, or zero if disabled.
+ */
+ STATE_ADVANCED_BLENDING_MODE,
STATE_INTERNAL_DRIVER /* first available state index for drivers (must be last) */
} gl_state_index;