iris: Destroy transfer slab after batches
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 1 May 2020 17:57:15 +0000 (10:57 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 1 May 2020 19:00:02 +0000 (19:00 +0000)
commitfb95ac68552d84d5d4f587edfb38cdc1889ede87
treec92c520c8a52e72aef3522c7e20086e3b6032b8e
parentc94379c770e86f66f17d5747e1925bd65bed65c0
iris: Destroy transfer slab after batches

Batches are going to have an uploader in the next commit, so destroying
batches will destroy uploaders, which will unmap transfers, which will
return things to the slab allocator.  So we need to reorder destroying
the slab allocator to the end to avoid crashing.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3802>
src/gallium/drivers/iris/iris_context.c