d3d12: Add cache managers for separate buffer usage cases
authorGiancarlo Devich <gdevich@microsoft.com>
Mon, 24 Oct 2022 20:07:55 +0000 (13:07 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 24 Oct 2022 23:35:39 +0000 (23:35 +0000)
commitb744e9703342960bb39cdaa09e3701e0e8059843
treec17d032136ee47b78dc9ccaf33f46f50552c096a
parent09b28524b2ae1f5f84516e0c0c813be23705abaf
d3d12: Add cache managers for separate buffer usage cases

Mis-matched usage is a large percentage of buffer cache misses when
searching for applicable buffers. Separating these into separate
managers puts them into separate heaps and eliminates a significant
amount of CPU time spent searching.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19283>
src/gallium/drivers/d3d12/d3d12_screen.cpp
src/gallium/drivers/d3d12/d3d12_screen.h