suyu/src/video_core/shader
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
..
decode video_core: Reimplement the buffer cache 2021-02-13 02:17:22 -03:00
ast.cpp ast: Improve string concat readability in operator() 2020-12-07 16:15:28 -05:00
ast.h video_core: Resolve more variable shadowing scenarios pt.3 2020-12-05 16:02:23 -05:00
async_shaders.cpp video_core: Silence -Wmissing-field-initializers warnings 2021-01-24 04:32:19 -03:00
async_shaders.h video_core: Reimplement the buffer cache 2021-02-13 02:17:22 -03:00
compiler_settings.cpp Shader_Ir: Refactor Decompilation process and allow multiple decompilation modes. 2019-10-04 18:52:50 -04:00
compiler_settings.h Shader_IR: allow else derivation to be optional. 2019-10-04 18:52:52 -04:00
control_flow.cpp video_core: Make use of ordered container contains() where applicable 2020-12-07 16:30:39 -05:00
control_flow.h video_core: Resolve more variable shadowing scenarios pt.3 2020-12-05 16:02:23 -05:00
decode.cpp video_core: Rewrite the texture cache 2020-12-30 03:38:50 -03:00
expr.cpp video_core/expr: Supply operator!= along with operator== 2019-10-05 09:14:26 -04:00
expr.h video_core: Resolve more variable shadowing scenarios pt.3 2020-12-05 16:02:23 -05:00
memory_util.cpp video_core: Remove all Core::System references in renderer 2020-09-06 05:28:48 -03:00
memory_util.h video_core: Remove all Core::System references in renderer 2020-09-06 05:28:48 -03:00
node.h Revert "Start of Integer flags implementation" 2021-01-25 02:48:03 -03:00
node_helper.cpp video_core: Remove unnecessary enum class casting in logging messages 2020-12-07 00:41:50 -05:00
node_helper.h shader/texture: Join separate image and sampler pairs offline 2020-06-05 00:24:51 -03:00
registry.cpp shader/registry: Silence a -Wshadow warning 2020-09-23 15:10:25 -04:00
registry.h shader/registry: Silence a -Wshadow warning 2020-09-23 15:10:25 -04:00
shader_ir.cpp Revert "Start of Integer flags implementation" 2021-01-25 02:48:03 -03:00
shader_ir.h video_core: Reimplement the buffer cache 2021-02-13 02:17:22 -03:00
track.cpp General: Make use of std::nullopt where applicable 2020-09-22 17:32:33 -04:00
transform_feedback.cpp shader/transform_feedback: Expose buffer stride 2020-03-13 18:33:05 -03:00
transform_feedback.h shader/transform_feedback: Expose buffer stride 2020-03-13 18:33:05 -03:00