Mesa (main): zink: declare ctx var during blend state bind
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Aug 27 02:50:21 UTC 2021
Module: Mesa
Branch: main
Commit: 1bb9704bce95211dd7842f7e3a3e73d798d76742
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1bb9704bce95211dd7842f7e3a3e73d798d76742
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Thu Jun 10 06:43:34 2021 -0400
zink: declare ctx var during blend state bind
Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12572>
---
src/gallium/drivers/zink/zink_state.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/zink/zink_state.c b/src/gallium/drivers/zink/zink_state.c
index 4e66eb53191..c4713dbe9f0 100644
--- a/src/gallium/drivers/zink/zink_state.c
+++ b/src/gallium/drivers/zink/zink_state.c
@@ -310,12 +310,13 @@ zink_create_blend_state(struct pipe_context *pctx,
static void
zink_bind_blend_state(struct pipe_context *pctx, void *cso)
{
+ struct zink_context *ctx = zink_context(pctx);
struct zink_gfx_pipeline_state* state = &zink_context(pctx)->gfx_pipeline_state;
if (state->blend_state != cso) {
state->blend_state = cso;
state->dirty = true;
- zink_context(pctx)->blend_state_changed = true;
+ ctx->blend_state_changed = true;
}
}
More information about the mesa-commit
mailing list