zink: declare ctx var during blend state bind

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12572>
This commit is contained in:
Mike Blumenkrantz
2021-06-10 06:43:34 -04:00
committed by Marge Bot
parent 960e776f24
commit 1bb9704bce
+2 -1
View File
@@ -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;
}
}