iris: Use thread safe slab allocators in transfer_map handling
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 10 Feb 2021 23:09:11 +0000 (15:09 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 4 Mar 2021 21:59:21 +0000 (13:59 -0800)
commitc133d0930fdaa85c7c5dfd70402892eb3d3ee0c3
tree00babaf75a33dacc86d861ecb4f7095d5c79f786
parent1b1c857248a97a8e17e633eaed6e5bbe4758ec1b
iris: Use thread safe slab allocators in transfer_map handling

pipe->transfer_map can be called from u_threaded_context's thread
rather than the driver thread.  We need to use two different slab
allocators, one for each thread.  transfer_unmap, on the other hand,
is only ever called from the driver thread.

Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8964>
src/gallium/drivers/iris/iris_context.c
src/gallium/drivers/iris/iris_context.h
src/gallium/drivers/iris/iris_resource.c