v3dv/bo: add a maximum size for the bo_cache and a envvar to configure it
authorAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 16 Jun 2020 23:41:13 +0000 (01:41 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:31 +0000 (21:21 +0000)
commitf78c99f357eee08926dcf9434c3944707837fe34
tree6833ea02108b1e4354bbd31266a2ad1ec1042daa
parent2adea940f1fc155032923cd84fc1cbb51459d0d5
v3dv/bo: add a maximum size for the bo_cache and a envvar to configure it

V3DV_MAX_BO_CACHE_SIZE can be used to configure it.

So one way to disable the bo cache is setting V3DV_MAX_BO_CACHE_SIZE
to zero. This would still run all the bo_cache size checks, but having
another envvar just to ensure that anything related to the cache is
used seemed like an overkill.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
src/broadcom/vulkan/v3dv_bo.c
src/broadcom/vulkan/v3dv_private.h