st/vega: Fix pipe blend state for various blend modes.
[mesa.git] / src / gallium / state_trackers / vega / vg_context.c
index 5479edc86136b5a00bde3865517968e58602c2f8..0844012cc3b45908722169b37809a5017ad88860 100644 (file)
@@ -400,6 +400,10 @@ void vg_validate_state(struct vg_context *ctx)
    if (vg_context_update_depth_stencil_rb(ctx, stfb->width, stfb->height))
       ctx->state.dirty |= DEPTH_STENCIL_DIRTY;
 
+   /* blend state depends on fb format */
+   if (ctx->state.dirty & FRAMEBUFFER_DIRTY)
+      ctx->state.dirty |= BLEND_DIRTY;
+
    renderer_validate(ctx->renderer, ctx->state.dirty,
          ctx->draw_buffer, &ctx->state.vg);