yuzu/src/video_core/host_shaders
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
..
block_linear_unswizzle_2d.comp host_shaders: Add block linear upload compute shaders 2020-12-30 01:39:35 -03:00
block_linear_unswizzle_3d.comp host_shaders: Add block linear upload compute shaders 2020-12-30 01:39:35 -03:00
CMakeLists.txt video_core: Reimplement the buffer cache 2021-02-13 02:17:22 -03:00
convert_depth_to_float.frag host_shaders: Add shaders to convert between depth and color images 2020-12-30 01:48:44 -03:00
convert_float_to_depth.frag host_shaders: Add shaders to convert between depth and color images 2020-12-30 01:48:44 -03:00
full_screen_triangle.vert host_shaders: Add shader to render a full screen triangle 2020-12-30 01:44:09 -03:00
opengl_copy_bc4.comp host_shaders: Add compute shader to copy BC4 as RG32UI to RGBA8 2020-12-30 01:47:08 -03:00
opengl_present.frag host_shaders: Add copyright headers to OpenGL present shaders 2020-12-30 01:35:56 -03:00
opengl_present.vert host_shaders: Add copyright headers to OpenGL present shaders 2020-12-30 01:35:56 -03:00
pitch_unswizzle.comp host_shaders: Add pitch linear upload compute shader 2020-12-30 01:41:42 -03:00
source_shader.h.in video_core/host_shaders: Add CMake integration for string shaders 2020-08-23 21:37:20 -03:00
StringShaderHeader.cmake video_core: Fix instances where msbuild always regenerated host shaders 2020-09-23 22:27:17 -03:00
vulkan_blit_color_float.frag host_shaders: Add texture color blit fragment shader 2020-12-30 02:00:48 -03:00
vulkan_blit_depth_stencil.frag host_shaders: Add helper to blit depth stencil fragment shader 2020-12-30 02:02:07 -03:00
vulkan_present.frag host_shaders: Add shaders to present to the swapchain 2020-12-30 01:59:12 -03:00
vulkan_present.vert host_shaders: Add shaders to present to the swapchain 2020-12-30 01:59:12 -03:00
vulkan_quad_indexed.comp host_shaders: Add Vulkan assembler compute shaders 2020-12-30 02:03:50 -03:00
vulkan_uint8.comp video_core: Reimplement the buffer cache 2021-02-13 02:17:22 -03:00