asahi: assert invariant

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27616>
This commit is contained in:
Alyssa Rosenzweig 2024-01-21 21:30:41 -04:00 committed by Marge Bot
parent 24b7fbca9d
commit 6ffbf77983

View file

@ -511,6 +511,7 @@ agx_batch_writes_internal(struct agx_batch *batch, struct agx_resource *rsrc,
*/
agx_writer_remove(ctx, rsrc->bo->handle);
agx_writer_add(ctx, agx_batch_idx(batch), rsrc->bo->handle);
assert(agx_batch_is_active(batch));
}
void