summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_staging_buffer_pool.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-05-28gl_staging_buffers: Optimization to reduce fence waitingameerj1-0/+2
2023-05-28OpenGL: Make use of persistent buffer maps in buffer cache downloadsameerj1-0/+42
Persistent buffer maps were already used by the texture cache, this extends their usage for the buffer cache. In my testing, using the memory maps for uploads was slower than the existing "ImmediateUpload" path, so the memory map usage is limited to downloads for the time being.
2022-04-23general: Convert source file copyright comments over to SPDXMorph1-3/+2
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
2022-03-19video_core: Reduce unused includesameerj1-1/+0
2021-06-24common: Replace common_sizes into user-literalsWunkolo1-1/+4
Removes common_sizes.h in favor of having `_KiB`, `_MiB`, `_GiB`, etc user-literals within literals.h. To keep the global namespace clean, users will have to use: ``` using namespace Common::Literals; ``` to access these literals.
2021-02-13video_core: Reimplement the buffer cacheReinUsesLisp1-35/+25
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.
2020-12-30video_core: Rewrite the texture cacheReinUsesLisp1-7/+12
The current texture cache has several points that hurt maintainability and performance. It's easy to break unrelated parts of the cache when doing minor changes. The cache can easily forget valuable information about the cached textures by CPU writes or simply by its normal usage.The current texture cache has several points that hurt maintainability and performance. It's easy to break unrelated parts of the cache when doing minor changes. The cache can easily forget valuable information about the cached textures by CPU writes or simply by its normal usage. This commit aims to address those issues.
2020-06-24gl_stream_buffer: Use InvalidateBufferData instead unmap and mapReinUsesLisp1-1/+0
Making the stream buffer resident increases GPU usage significantly on some games. This seems to be addressed invalidating the stream buffer with InvalidateBufferData instead of using a Unmap + Map (with invalidation flags).
2020-06-24gl_buffer_cache: Mark buffers as residentReinUsesLisp1-2/+9
Make stream buffer and cached buffers as resident and query their address. This allows us to use GPU addresses for several proprietary Nvidia extensions.
2020-06-24gl_stream_buffer: Always use a non-coherent bufferReinUsesLisp1-3/+1
2020-06-24gl_stream_buffer: Always use persistent memory mapsReinUsesLisp1-3/+1
yuzu no longer supports platforms without persistent maps.
2020-06-09buffer_cache: Avoid passing references of shared pointers and misc style changesReinUsesLisp1-3/+8
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=).
2019-06-21video_core: Make ARB_buffer_storage a required extensionReinUsesLisp1-1/+2
2019-01-06gl_stream_buffer: Use DSA for buffer managementReinUsesLisp1-2/+1
2018-08-22renderer_opengl: Namespace OpenGL codeLioncash1-0/+4
Namespaces all OpenGL code under the OpenGL namespace. Prevents polluting the global namespace and allows clear distinction between other renderers' code in the future.
2018-08-21gl_stream_buffer: Add missing header guardLioncash1-0/+2
Prevents potential compilation errors from occuring due to multiple inclusions
2018-08-12Update the stream_buffer helper from Citra.Markus Wick1-18/+24
Please see https://github.com/citra-emu/citra/pull/3666 for more details.
2018-04-20renderer_opengl: Add missing header guardsLioncash1-0/+2
2018-03-20renderer_gl: Port over gl_stream_buffer module from Citra.bunnei1-0/+34