asahi: Assert that freed BOs have no pending writers
authorAsahi Lina <lina@asahilina.net>
Wed, 3 May 2023 06:40:33 +0000 (15:40 +0900)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 7 May 2023 13:10:37 +0000 (09:10 -0400)
commit3f55eff0e5df17dd4d9328236988932d360ac00c
treec5d59249e3ed183f02e747be4881ac616cf5c40d
parentd7d098679b40c0aa5bf0b01bda68c05dbae4880e
asahi: Assert that freed BOs have no pending writers

This is just a sanity check, I haven't actually hit this case but if we
ever do something is very broken (e.g. BO refcounting bug).

Signed-off-by: Asahi Lina <lina@asahilina.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22891>
src/asahi/lib/agx_bo.c