zink: unset program batch usage on state reset
Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11399>
This commit is contained in:
parent
48add48209
commit
fec24a2fa4
|
@ -61,6 +61,7 @@ zink_reset_batch_state(struct zink_context *ctx, struct zink_batch_state *bs)
|
|||
|
||||
set_foreach_remove(bs->programs, entry) {
|
||||
struct zink_program *pg = (struct zink_program*)entry->key;
|
||||
zink_batch_usage_unset(&pg->batch_uses, bs);
|
||||
if (pg->is_compute) {
|
||||
struct zink_compute_program *comp = (struct zink_compute_program*)pg;
|
||||
bool in_use = comp == ctx->curr_compute;
|
||||
|
|
Loading…
Reference in New Issue