buffer_cache/buffer_base: Add a range tracking buffer container

It keeps track of the modified CPU and GPU ranges on a CPU page
granularity, notifying the given rasterizer about state changes
in the tracking behavior of the buffer.

Use a small vector optimization to store buffers smaller than 256 KiB
locally instead of using free store memory allocations.
This commit is contained in:
ReinUsesLisp
2020-12-30 18:37:31 -03:00
parent 99d2d77062
commit a4bfae1b55
2 changed files with 496 additions and 0 deletions

View File

@ -1,6 +1,7 @@
add_subdirectory(host_shaders)
add_library(video_core STATIC
buffer_cache/buffer_base.h
buffer_cache/buffer_block.h
buffer_cache/buffer_cache.h
buffer_cache/map_interval.cpp