summaryrefslogtreecommitdiffstats
path: root/src/video_core/buffer_cache/buffer_block.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* video_core: Reimplement the buffer cacheReinUsesLisp2021-02-131-62/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Reimplement the buffer cache using cached bindings and page level granularity for modification tracking. This also drops the usage of shared pointers and virtual functions from the cache. - Bindings are cached, allowing to skip work when the game changes few bits between draws. - OpenGL Assembly shaders no longer copy when a region has been modified from the GPU to emulate constant buffers, instead GL_EXT_memory_object is used to alias sub-buffers within the same allocation. - OpenGL Assembly shaders stream constant buffer data using glProgramBufferParametersIuivNV, from NV_parameter_buffer_object. In theory this should save one hash table resolve inside the driver compared to glBufferSubData. - A new OpenGL stream buffer is implemented based on fences for drivers that are not Nvidia's proprietary, due to their low performance on partial glBufferSubData calls synchronized with 3D rendering (that some games use a lot). - Most optimizations are shared between APIs now, allowing Vulkan to cache more bindings than before, skipping unnecesarry work. This commit adds the necessary infrastructure to use Vulkan object from OpenGL. Overall, it improves performance and fixes some bugs present on the old cache. There are still some edge cases hit by some games that harm performance on some vendors, this are planned to be fixed in later commits.
* buffer_block: Mark interface as nodiscard where applicableLioncash2020-12-071-7/+7
| | | | Prevents logic errors from occurring from unused values.
* buffer_block: Remove unnecessary includesLioncash2020-12-071-5/+0
| | | | Reduces the amount of dependencies the header pulls in.
* buffer_cache: Avoid passing references of shared pointers and misc style changesReinUsesLisp2020-06-091-14/+13
| | | | | | | | | Instead of using as template argument a shared pointer, use the underlying type and manage shared pointers explicitly. This can make removing shared pointers from the cache more easy. While we are at it, make some misc style changes and general improvements (like insert_or_assign instead of operator[] + operator=).
* Buffer Cache: Use vAddr instead of physical memory.Fernando Sahmkow2020-04-061-25/+17
|
* video_core: Silent miscellaneous warnings (#2820)Rodrigo Locatti2019-08-301-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | * texture_cache/surface_params: Remove unused local variable * rasterizer_interface: Add missing documentation commentary * maxwell_dma: Remove unused rasterizer reference * video_core/gpu: Sort member declaration order to silent -Wreorder warning * fermi_2d: Remove unused MemoryManager reference * video_core: Silent unused variable warnings * buffer_cache: Silent -Wreorder warnings * kepler_memory: Remove unused MemoryManager reference * gl_texture_cache: Add missing override * buffer_cache: Add missing include * shader/decode: Remove unused variables
* Buffer Cache: Adress Feedback.Fernando Sahmkow2019-08-211-4/+3
|
* Video_Core: Implement a new Buffer CacheFernando Sahmkow2019-08-211-0/+78