if (devinfo->gen < 6) {
/* _NEW_COLOR */
- if (!ctx->Color.ColorLogicOpEnabled && !ctx->Color._AdvancedBlendMode &&
+ if (!ctx->Color.ColorLogicOpEnabled &&
+ ctx->Color._AdvancedBlendMode == BLEND_NONE &&
(ctx->Color.BlendEnabled & (1 << unit)))
surf[0] |= BRW_SURFACE_BLEND_ENABLED;
entry->LogicOpEnable = true;
entry->LogicOpFunction = ctx->Color._LogicOp;
}
- } else if (blend_enabled && !ctx->Color._AdvancedBlendMode
+ } else if (blend_enabled &&
+ ctx->Color._AdvancedBlendMode == BLEND_NONE
&& (GEN_GEN <= 5 || !integer)) {
GLenum eqRGB = ctx->Color.Blend[i].EquationRGB;
GLenum eqA = ctx->Color.Blend[i].EquationA;
}
}
- if (ctx->Color.BlendEnabled && ctx->Color._AdvancedBlendMode) {
+ if (ctx->Color.BlendEnabled &&
+ ctx->Color._AdvancedBlendMode != BLEND_NONE) {
/* The KHR_blend_equation_advanced spec says:
*
* "If any non-NONE draw buffer uses a blend equation found in table
blend->logicop_enable = 1;
blend->logicop_func = ctx->Color._LogicOp;
}
- else if (ctx->Color.BlendEnabled && !ctx->Color._AdvancedBlendMode) {
+ else if (ctx->Color.BlendEnabled &&
+ ctx->Color._AdvancedBlendMode == BLEND_NONE) {
/* blending enabled */
for (i = 0, j = 0; i < num_state; i++) {
if (!(ctx->Color.BlendEnabled & (1 << i)) ||