82c2601555
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. |
||
---|---|---|
.. | ||
blit_image.cpp | ||
blit_image.h | ||
fixed_pipeline_state.cpp | ||
fixed_pipeline_state.h | ||
maxwell_to_vk.cpp | ||
maxwell_to_vk.h | ||
renderer_vulkan.cpp | ||
renderer_vulkan.h | ||
vk_blit_screen.cpp | ||
vk_blit_screen.h | ||
vk_buffer_cache.cpp | ||
vk_buffer_cache.h | ||
vk_command_pool.cpp | ||
vk_command_pool.h | ||
vk_compute_pass.cpp | ||
vk_compute_pass.h | ||
vk_compute_pipeline.cpp | ||
vk_compute_pipeline.h | ||
vk_descriptor_pool.cpp | ||
vk_descriptor_pool.h | ||
vk_fence_manager.cpp | ||
vk_fence_manager.h | ||
vk_graphics_pipeline.cpp | ||
vk_graphics_pipeline.h | ||
vk_master_semaphore.cpp | ||
vk_master_semaphore.h | ||
vk_pipeline_cache.cpp | ||
vk_pipeline_cache.h | ||
vk_query_cache.cpp | ||
vk_query_cache.h | ||
vk_rasterizer.cpp | ||
vk_rasterizer.h | ||
vk_resource_pool.cpp | ||
vk_resource_pool.h | ||
vk_scheduler.cpp | ||
vk_scheduler.h | ||
vk_shader_decompiler.cpp | ||
vk_shader_decompiler.h | ||
vk_shader_util.cpp | ||
vk_shader_util.h | ||
vk_staging_buffer_pool.cpp | ||
vk_staging_buffer_pool.h | ||
vk_state_tracker.cpp | ||
vk_state_tracker.h | ||
vk_stream_buffer.cpp | ||
vk_stream_buffer.h | ||
vk_swapchain.cpp | ||
vk_swapchain.h | ||
vk_texture_cache.cpp | ||
vk_texture_cache.h | ||
vk_update_descriptor.cpp | ||
vk_update_descriptor.h |