crocus: fix batch state bo leak

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11547>
This commit is contained in:
Dave Airlie 2021-06-23 12:57:13 +10:00 committed by Marge Bot
parent 9027aae546
commit 29d272f144

View file

@ -562,6 +562,7 @@ crocus_batch_free(struct crocus_batch *batch)
u_upload_destroy(batch->fine_fences.uploader);
crocus_bo_unreference(batch->command.bo);
crocus_bo_unreference(batch->state.bo);
batch->command.bo = NULL;
batch->command.map = NULL;
batch->command.map_next = NULL;