citra/src/video_core/renderer_vulkan
ReinUsesLisp 82c2601555 video_core: Reimplement the buffer cache
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.
2021-02-13 02:17:22 -03:00
..
blit_image.cpp renderer_vulkan: Move device abstraction to vulkan_common 2021-01-04 02:22:22 -03:00
blit_image.h renderer_vulkan: Rename VKDevice to Device 2021-01-03 17:51:48 -03:00
fixed_pipeline_state.cpp Merge pull request #5231 from ReinUsesLisp/dyn-bindings 2021-01-08 12:24:46 -08:00
fixed_pipeline_state.h Merge pull request #5231 from ReinUsesLisp/dyn-bindings 2021-01-08 12:24:46 -08:00
maxwell_to_vk.cpp video_core: Reimplement the buffer cache 2021-02-13 02:17:22 -03:00
maxwell_to_vk.h video_core: Reimplement the buffer cache 2021-02-13 02:17:22 -03:00
renderer_vulkan.cpp video_core: Reimplement the buffer cache 2021-02-13 02:17:22 -03:00
renderer_vulkan.h video_core: Reimplement the buffer cache 2021-02-13 02:17:22 -03:00
vk_blit_screen.cpp video_core: Reimplement the buffer cache 2021-02-13 02:17:22 -03:00
vk_blit_screen.h gpu: Report renderer errors with exceptions 2021-02-13 02:16:19 -03:00
vk_buffer_cache.cpp video_core: Reimplement the buffer cache 2021-02-13 02:17:22 -03:00
vk_buffer_cache.h video_core: Reimplement the buffer cache 2021-02-13 02:17:22 -03:00
vk_command_pool.cpp renderer_vulkan: Move device abstraction to vulkan_common 2021-01-04 02:22:22 -03:00
vk_command_pool.h renderer_vulkan: Rename VKDevice to Device 2021-01-03 17:51:48 -03:00
vk_compute_pass.cpp video_core: Reimplement the buffer cache 2021-02-13 02:17:22 -03:00
vk_compute_pass.h video_core: Reimplement the buffer cache 2021-02-13 02:17:22 -03:00
vk_compute_pipeline.cpp renderer_vulkan: Move device abstraction to vulkan_common 2021-01-04 02:22:22 -03:00
vk_compute_pipeline.h renderer_vulkan: Rename VKDevice to Device 2021-01-03 17:51:48 -03:00
vk_descriptor_pool.cpp renderer_vulkan: Move device abstraction to vulkan_common 2021-01-04 02:22:22 -03:00
vk_descriptor_pool.h renderer_vulkan: Rename VKDevice to Device 2021-01-03 17:51:48 -03:00
vk_fence_manager.cpp video_core: Reimplement the buffer cache 2021-02-13 02:17:22 -03:00
vk_fence_manager.h video_core: Reimplement the buffer cache 2021-02-13 02:17:22 -03:00
vk_graphics_pipeline.cpp vk_graphics_pipeline: Fix narrowing conversion on MSVC 2021-01-24 21:41:29 -03:00
vk_graphics_pipeline.h renderer_vulkan: Rename VKDevice to Device 2021-01-03 17:51:48 -03:00
vk_master_semaphore.cpp renderer_vulkan: Move device abstraction to vulkan_common 2021-01-04 02:22:22 -03:00
vk_master_semaphore.h renderer_vulkan: Rename VKDevice to Device 2021-01-03 17:51:48 -03:00
vk_pipeline_cache.cpp vk_pipeline_cache: Properly bypass VertexA shaders 2021-01-23 03:59:59 -03:00
vk_pipeline_cache.h renderer_vulkan: Rename VKDevice to Device 2021-01-03 17:51:48 -03:00
vk_query_cache.cpp renderer_vulkan: Move device abstraction to vulkan_common 2021-01-04 02:22:22 -03:00
vk_query_cache.h renderer_vulkan: Rename VKDevice to Device 2021-01-03 17:51:48 -03:00
vk_rasterizer.cpp video_core: Reimplement the buffer cache 2021-02-13 02:17:22 -03:00
vk_rasterizer.h video_core: Reimplement the buffer cache 2021-02-13 02:17:22 -03:00
vk_resource_pool.cpp renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphore 2020-09-19 01:46:37 -03:00
vk_resource_pool.h renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphore 2020-09-19 01:46:37 -03:00
vk_scheduler.cpp video_core: Reimplement the buffer cache 2021-02-13 02:17:22 -03:00
vk_scheduler.h video_core: Reimplement the buffer cache 2021-02-13 02:17:22 -03:00
vk_shader_decompiler.cpp video_core: Reimplement the buffer cache 2021-02-13 02:17:22 -03:00
vk_shader_decompiler.h video_core: Reimplement the buffer cache 2021-02-13 02:17:22 -03:00
vk_shader_util.cpp renderer_vulkan: Move device abstraction to vulkan_common 2021-01-04 02:22:22 -03:00
vk_shader_util.h renderer_vulkan: Rename VKDevice to Device 2021-01-03 17:51:48 -03:00
vk_staging_buffer_pool.cpp vulkan_memory_allocator: Add "download" memory usage hint 2021-01-15 16:19:39 -03:00
vk_staging_buffer_pool.h vulkan_memory_allocator: Add "download" memory usage hint 2021-01-15 16:19:39 -03:00
vk_state_tracker.cpp video_core: Reimplement the buffer cache 2021-02-13 02:17:22 -03:00
vk_state_tracker.h video_core: Rewrite the texture cache 2020-12-30 03:38:50 -03:00
vk_stream_buffer.cpp renderer_vulkan: Move device abstraction to vulkan_common 2021-01-04 02:22:22 -03:00
vk_stream_buffer.h renderer_vulkan: Rename VKDevice to Device 2021-01-03 17:51:48 -03:00
vk_swapchain.cpp gpu: Report renderer errors with exceptions 2021-02-13 02:16:19 -03:00
vk_swapchain.h gpu: Report renderer errors with exceptions 2021-02-13 02:16:19 -03:00
vk_texture_cache.cpp video_core: Reimplement the buffer cache 2021-02-13 02:17:22 -03:00
vk_texture_cache.h video_core: Reimplement the buffer cache 2021-02-13 02:17:22 -03:00
vk_update_descriptor.cpp renderer_vulkan: Move device abstraction to vulkan_common 2021-01-04 02:22:22 -03:00
vk_update_descriptor.h renderer_vulkan: Rename VKDevice to Device 2021-01-03 17:51:48 -03:00