zink: reset batch states on destroy
these may otherwise have been in the reset queue and thus contain resource refs Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37379>
This commit is contained in:
@@ -229,6 +229,8 @@ zink_batch_state_destroy(struct zink_screen *screen, struct zink_batch_state *bs
|
||||
if (!bs)
|
||||
return;
|
||||
|
||||
reset_batch_state_internal(screen, bs);
|
||||
|
||||
util_queue_fence_destroy(&bs->flush_completed);
|
||||
|
||||
cnd_destroy(&bs->usage.flush);
|
||||
|
||||
Reference in New Issue
Block a user