From 9d35a006ba232ced01ab8979d4b7a81f24d965be Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 18 Sep 2025 13:11:47 -0400 Subject: [PATCH] zink: flag mesh pipeline_changed if switching from a shader object draw this otherwise might fail to do some updates Part-of: --- src/gallium/drivers/zink/zink_draw.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/zink/zink_draw.cpp b/src/gallium/drivers/zink/zink_draw.cpp index 444cc7cf6bc..ea04b13733a 100644 --- a/src/gallium/drivers/zink/zink_draw.cpp +++ b/src/gallium/drivers/zink/zink_draw.cpp @@ -988,8 +988,8 @@ update_mesh_pipeline(struct zink_context *ctx, struct zink_batch_state *bs) pipeline = zink_get_gfx_pipeline(ctx, ctx->mesh_program, &ctx->gfx_pipeline_state, MESA_PRIM_COUNT); } if (pipeline) { - pipeline_changed = prev_pipeline != pipeline; - if (BATCH_CHANGED || pipeline_changed || ctx->shobj_draw) + pipeline_changed = prev_pipeline != pipeline || ctx->shobj_draw; + if (BATCH_CHANGED || pipeline_changed) VKCTX(CmdBindPipeline)(bs->cmdbuf, VK_PIPELINE_BIND_POINT_GRAPHICS, pipeline); ctx->shobj_draw = false; } else {