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 <lionel.g.landwerlin@intel.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15397>
This commit is contained in:
Mike Blumenkrantz 2022-03-15 18:24:28 -04:00 committed by Marge Bot
parent 19330eeb1d
commit efa724133f
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}