Module: Mesa Branch: main Commit: 30d1223247fc76ac976a47e83a9cf28d3ba42383 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=30d1223247fc76ac976a47e83a9cf28d3ba42383
Author: Alyssa Rosenzweig <aly...@rosenzweig.io> Date: Tue May 4 22:29:18 2021 -0400 asahi: Implement set_blend_color Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10720> --- src/gallium/drivers/asahi/agx_state.c | 6 +++++- src/gallium/drivers/asahi/agx_state.h | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/asahi/agx_state.c b/src/gallium/drivers/asahi/agx_state.c index e7cde23ea61..38f5d7b7f40 100644 --- a/src/gallium/drivers/asahi/agx_state.c +++ b/src/gallium/drivers/asahi/agx_state.c @@ -43,9 +43,13 @@ #include "asahi/lib/agx_formats.h" static void -agx_set_blend_color(struct pipe_context *ctx, +agx_set_blend_color(struct pipe_context *pctx, const struct pipe_blend_color *state) { + struct agx_context *ctx = agx_context(pctx); + + if (state) + memcpy(&ctx->blend_color, state, sizeof(*state)); } static void * diff --git a/src/gallium/drivers/asahi/agx_state.h b/src/gallium/drivers/asahi/agx_state.h index a8d0aebcc10..47eacf36e54 100644 --- a/src/gallium/drivers/asahi/agx_state.h +++ b/src/gallium/drivers/asahi/agx_state.h @@ -131,6 +131,7 @@ struct agx_context { struct agx_rasterizer *rast; struct agx_zsa zs; struct agx_blend *blend; + struct pipe_blend_color blend_color; uint8_t viewport[AGX_VIEWPORT_LENGTH]; uint8_t render_target[8][AGX_RENDER_TARGET_LENGTH]; _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit