tu: Add a "scratch bo" allocation mechanism
authorConnor Abbott <cwabbott0@gmail.com>
Mon, 11 May 2020 16:46:04 +0000 (18:46 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 13 May 2020 13:39:04 +0000 (13:39 +0000)
commited79f805faf1ac5919a30d3284e37cc3f394e464
tree36799bc05aee3196de0ca8c3ca4152eeb0afbc9a
parent7ce527a4fed1706aed9ced8e5d3432cc5abfbbd3
tu: Add a "scratch bo" allocation mechanism

This is simpler than a full-blown memory reuse mechanism, but is good
enough to make sure that repeatedly doing a copy that requires the
linear staging buffer workaround won't use excessive memory or be slowed
down due to repeated allocations.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5007>
src/freedreno/vulkan/tu_device.c
src/freedreno/vulkan/tu_private.h