mesa: treat Color._AdvancedBlendMode as enum
[mesa.git] / src / mesa / drivers / dri / i965 / brw_wm_surface_state.c
index ae4cdedd5601c461594ad3c9178128ba1cf32313..67b83ac9ca9a8c4333b22233ed2114caadb500dd 100644 (file)
@@ -978,7 +978,8 @@ gen4_update_renderbuffer_surface(struct brw_context *brw,
 
    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;