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:
committed by
Marge Bot
parent
960e776f24
commit
1bb9704bce
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user