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>
(cherry picked from commit efa724133f)
This commit is contained in:
Mike Blumenkrantz 2022-03-15 18:24:28 -04:00 committed by Eric Engestrom
parent 32807e38c3
commit 4855a4d445
2 changed files with 2 additions and 1 deletions

View file

@ -481,7 +481,7 @@
"description": "zink: flag sample locations for re-set on batch flush",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -2459,6 +2459,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;
}
}