mesa/src
Alejandro Piñeiro 2adea940f1 v3dv/bo: adding a BO cache
Heavily based on the already existing for the v3d OpenGL driver, but
without references, and with some extra OOM checks (Vulkan CTS has
several OOM tests).

With this commit v3dv_bo_alloc and v3dv_bo_free became frontends to
the bo_cache. The former tries to get a BO from the cache if possible,
and the latter stores the BO on the cache if possible. The former also
adds a new parameter to point if the BO to allocate is private.

As v3d we are only caching private BOs, those created by the driver
for internal use (like CLs, tile_alloc, etc). They are the ones with
the highest change of being reused (for example, CL BOs are always
4KB, so they can always be reused). User-created BOs can have any
size, including some very large ones for buffers and images, which
makes them far less likely to be reused and would add a lot of memory
pressure if we decided to cache them.

In any case, in practice, we found that we could get a performance
improvement by caching also user-created BOs, but that would need more
care and an analysis to decide which ones makes sense. Would also
require to change how the cached BOs are stored by size. Right now
there are an array of list_head, that doesn't work well with big
BOs. If done, that would be handled on a separate commit.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
2020-10-13 21:21:31 +00:00
..
amd aco: fix get_ssbo_size with a vgpr resource 2020-10-13 14:20:28 +00:00
android_stub mesa: Make the android_stub be a set of non-installed shared libraries. 2020-09-22 17:09:22 +00:00
broadcom v3dv/bo: adding a BO cache 2020-10-13 21:21:31 +00:00
compiler scons: fix SPIR-V -> NIR build 2020-10-13 16:53:10 +01:00
drm-shim drm-shim: Fix unused variable warnings from asserts in release build. 2020-08-28 22:45:08 +00:00
egl egl/android: HAVE_DRM_GRALLOC path fixes (v2) 2020-09-07 23:33:15 +02:00
etnaviv etnaviv: replace all dup() with os_dupfd_cloexec() 2020-06-18 02:09:56 +00:00
freedreno turnip: Add support for GetSwapchainGrallocUsage2ANDROID(). 2020-10-08 21:04:01 +00:00
gallium v3d/compiler: num_tex_used on v3d_key 2020-10-13 21:21:25 +00:00
gbm gallium: rename pipe_transfer_usage -> pipe_map_flags 2020-09-22 03:20:54 +00:00
getopt
glx glx: Allow depth-30 pbuffers to work without a depth-30 pixmap format 2020-09-17 14:28:24 -04:00
gtest gtest: Update to 1.10.0 2020-04-20 11:57:11 +00:00
hgl scons: Prune out unnecessary targets. 2020-03-30 13:38:01 +00:00
imgui
intel radv/aco,nir/lower_subgroups: don't lower elect 2020-10-13 12:47:20 +00:00
loader driconf: Make the driver's declarations be structs instead of XML. 2020-10-02 23:59:52 +00:00
mapi glthread: handle glInterleavedArrays 2020-10-07 09:50:18 -04:00
mesa glsl: Initialize ir_to_mesa_visitor members in constructor. 2020-10-13 21:07:24 +00:00
panfrost pan/bi: Range check newc/oldc when rewriting 2020-10-10 17:15:03 -04:00
util util/xmlconfig: Initialize xmlconfig member options in constructor. 2020-10-13 13:34:53 -07:00
virtio virgl: update protocol headers 2020-08-21 18:38:44 +00:00
vulkan vulkan/wsi/display: add option for display fence to signal syncobj 2020-09-24 13:20:00 +00:00
meson.build v3dv: add v3d vulkan driver skeleton 2020-10-13 21:21:24 +00:00
SConscript driconf: drop now unused translation facility 2020-06-22 21:50:12 +00:00