From efa724133f6e454b209837713ad4218ade6eb7d0 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 15 Mar 2022 18:24:28 -0400 Subject: [PATCH] zink: flag sample locations for re-set on batch flush this needs to be re-set any time the cmdbuf changes cc: mesa-stable Tested-by: Lionel Landwerlin Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c index 167f340f7d3..9c07ce60a34 100644 --- a/src/gallium/drivers/zink/zink_context.c +++ b/src/gallium/drivers/zink/zink_context.c @@ -2499,6 +2499,7 @@ flush_batch(struct zink_context *ctx, bool sync) ctx->oom_stall = false; ctx->dd->bindless_bound = false; ctx->di.bindless_refs_dirty = true; + ctx->sample_locations_changed = ctx->gfx_pipeline_state.sample_locations_enabled; if (conditional_render_active) zink_start_conditional_render(ctx); }