zink: collapse gfx pipeline fetching and binding conditionals
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

this avoids taking the wrong conditional if a pipeline fetch fails

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38134>
(cherry picked from commit 0b24fd174a)
This commit is contained in:
Mike Blumenkrantz 2025-10-29 09:59:13 -04:00 committed by Eric Engestrom
parent 7a20c05ecc
commit cbeb80c190
2 changed files with 2 additions and 3 deletions

View file

@ -24,7 +24,7 @@
"description": "zink: collapse gfx pipeline fetching and binding conditionals",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -268,8 +268,7 @@ update_gfx_pipeline(struct zink_context *ctx, struct zink_batch_state *bs, enum
pipeline = zink_get_gfx_pipeline<DYNAMIC_STATE, true>(ctx, ctx->curr_program, &ctx->gfx_pipeline_state, mode);
else
pipeline = zink_get_gfx_pipeline<DYNAMIC_STATE, false>(ctx, ctx->curr_program, &ctx->gfx_pipeline_state, mode);
}
if (pipeline) {
assert(pipeline);
pipeline_changed = prev_pipeline != pipeline || ctx->shobj_draw;
if (BATCH_CHANGED || pipeline_changed)
VKCTX(CmdBindPipeline)(bs->cmdbuf, VK_PIPELINE_BIND_POINT_GRAPHICS, pipeline);