Ryujinx/src/Ryujinx.Graphics.Vulkan/Shaders
riperiperi 93cd327873
Vulkan: Device Local and higher invocation count for buffer conversions (#5623)
Just some simple changes to the buffer conversion shaders. (stride conversion, D32S8 to D24S8)

The first change is using a device local buffer for converted vertex buffers, since they're only read/written on the GPU. These paths don't trigger on NVIDIA, but if you force them to use it demonstrates the full extent writing to host owned memory from compute absolutely destroys them. AMD GPUs are less heavily affected by this issue, but since the game in question was writing 230MB from compute, I imagine it should have some effect.

The second change is allowing the buffer conversion shaders to scale their work group count. While dividing the work between 32 invocations works OK for M1 macs, it's not so great for anything with more cores like AMD GPUs, which should be able to do a lot more parallel copies. Now, it scales by roughly 100 elements per invocation.

Some stride change cases could be improved further by either limiting vertex buffer size somehow (reading the index buffer could help, but is always risky) or only updating regions that changed, rather than invalidating the whole thing.
2023-09-02 17:58:15 -03:00
..
SpirvBinaries Vulkan: Device Local and higher invocation count for buffer conversions (#5623) 2023-09-02 17:58:15 -03:00
ChangeBufferStrideShaderSource.comp Vulkan: Device Local and higher invocation count for buffer conversions (#5623) 2023-09-02 17:58:15 -03:00
ColorBlitClearAlphaFragmentShaderSource.frag Move solution and projects to src 2023-04-27 23:51:14 +02:00
ColorBlitFragmentShaderSource.frag Move solution and projects to src 2023-04-27 23:51:14 +02:00
ColorBlitMsFragmentShaderSource.frag Move solution and projects to src 2023-04-27 23:51:14 +02:00
ColorBlitVertexShaderSource.vert Move solution and projects to src 2023-04-27 23:51:14 +02:00
ColorClearFFragmentShaderSource.frag Move solution and projects to src 2023-04-27 23:51:14 +02:00
ColorClearSIFragmentShaderSource.frag Move solution and projects to src 2023-04-27 23:51:14 +02:00
ColorClearUIFragmentShaderSource.frag Move solution and projects to src 2023-04-27 23:51:14 +02:00
ColorClearVertexShaderSource.vert Move solution and projects to src 2023-04-27 23:51:14 +02:00
ColorCopyShorteningComputeShaderSource.comp Move solution and projects to src 2023-04-27 23:51:14 +02:00
ColorCopyToNonMsComputeShaderSource.comp Move solution and projects to src 2023-04-27 23:51:14 +02:00
ColorCopyWideningComputeShaderSource.comp Move solution and projects to src 2023-04-27 23:51:14 +02:00
ColorDrawToMsFragmentShaderSource.frag Move solution and projects to src 2023-04-27 23:51:14 +02:00
ColorDrawToMsVertexShaderSource.vert Move solution and projects to src 2023-04-27 23:51:14 +02:00
ConvertD32S8ToD24S8ShaderSource.comp Vulkan: Device Local and higher invocation count for buffer conversions (#5623) 2023-09-02 17:58:15 -03:00
ConvertIndexBufferShaderSource.comp Move solution and projects to src 2023-04-27 23:51:14 +02:00
ConvertIndirectDataShaderSource.comp Move solution and projects to src 2023-04-27 23:51:14 +02:00
DepthBlitFragmentShaderSource.frag Move solution and projects to src 2023-04-27 23:51:14 +02:00
DepthBlitMsFragmentShaderSource.frag Move solution and projects to src 2023-04-27 23:51:14 +02:00
DepthDrawToMsFragmentShaderSource.frag Move solution and projects to src 2023-04-27 23:51:14 +02:00
DepthDrawToNonMsFragmentShaderSource.frag Move solution and projects to src 2023-04-27 23:51:14 +02:00
DepthStencilClearFragmentShaderSource.frag Implement support for masked stencil clears on Vulkan (#5589) 2023-08-18 05:25:54 +00:00
StencilBlitFragmentShaderSource.frag Move solution and projects to src 2023-04-27 23:51:14 +02:00
StencilBlitMsFragmentShaderSource.frag Move solution and projects to src 2023-04-27 23:51:14 +02:00
StencilDrawToMsFragmentShaderSource.frag Move solution and projects to src 2023-04-27 23:51:14 +02:00
StencilDrawToNonMsFragmentShaderSource.frag Move solution and projects to src 2023-04-27 23:51:14 +02:00