ctx->Color.BlendEnabled, ctx->Color._AdvancedBlendMode);
return;
+ case STATE_ALPHA_REF:
+ value[0] = ctx->Color.AlphaRefUnclamped;
+ return;
+
/* XXX: make sure new tokens added here are also handled in the
* _mesa_program_state_flags() switch, below.
*/
case STATE_ADVANCED_BLENDING_MODE:
return _NEW_COLOR;
+ case STATE_ALPHA_REF:
+ return _NEW_COLOR;
+
default:
/* unknown state indexes are silently ignored and
* no flag set, since it is handled by the driver.
case STATE_ADVANCED_BLENDING_MODE:
append(dst, "AdvancedBlendingMode");
break;
+ case STATE_ALPHA_REF:
+ append(dst, "alphaRef");
+ break;
default:
/* probably STATE_INTERNAL_DRIVER+i (driver private state) */
append(dst, "driverState");
* currently active advanced blending equation, or zero if disabled.
*/
STATE_ADVANCED_BLENDING_MODE,
+ STATE_ALPHA_REF, /* alpha-test reference value */
STATE_INTERNAL_DRIVER /* first available state index for drivers (must be last) */
} gl_state_index;