From 33b18768575613638da4a6f6e0f7de5171acb83c Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 24 Nov 2022 10:57:24 -0500 Subject: [PATCH] asahi: Dirty track blend state We'll want this to reduce variant lookups eventually. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/asahi/agx_state.c | 1 + src/gallium/drivers/asahi/agx_state.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/gallium/drivers/asahi/agx_state.c b/src/gallium/drivers/asahi/agx_state.c index e16fb71..c793373 100644 --- a/src/gallium/drivers/asahi/agx_state.c +++ b/src/gallium/drivers/asahi/agx_state.c @@ -173,6 +173,7 @@ agx_bind_blend_state(struct pipe_context *pctx, void *cso) { struct agx_context *ctx = agx_context(pctx); ctx->blend = cso; + ctx->dirty |= AGX_DIRTY_BLEND; } static const enum agx_stencil_op agx_stencil_ops[PIPE_STENCIL_OP_INVERT + 1] = { diff --git a/src/gallium/drivers/asahi/agx_state.h b/src/gallium/drivers/asahi/agx_state.h index cdd7026..888ab3f 100644 --- a/src/gallium/drivers/asahi/agx_state.h +++ b/src/gallium/drivers/asahi/agx_state.h @@ -172,6 +172,8 @@ enum agx_dirty { /* Just the progs themselves */ AGX_DIRTY_VS_PROG = BITFIELD_BIT(10), AGX_DIRTY_FS_PROG = BITFIELD_BIT(11), + + AGX_DIRTY_BLEND = BITFIELD_BIT(12), }; #define AGX_MAX_BATCHES (2) -- 2.7.4