mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-28 03:23:05 +00:00
93cd327873
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. |
||
---|---|---|
.. | ||
SpirvBinaries | ||
ChangeBufferStrideShaderSource.comp | ||
ColorBlitClearAlphaFragmentShaderSource.frag | ||
ColorBlitFragmentShaderSource.frag | ||
ColorBlitMsFragmentShaderSource.frag | ||
ColorBlitVertexShaderSource.vert | ||
ColorClearFFragmentShaderSource.frag | ||
ColorClearSIFragmentShaderSource.frag | ||
ColorClearUIFragmentShaderSource.frag | ||
ColorClearVertexShaderSource.vert | ||
ColorCopyShorteningComputeShaderSource.comp | ||
ColorCopyToNonMsComputeShaderSource.comp | ||
ColorCopyWideningComputeShaderSource.comp | ||
ColorDrawToMsFragmentShaderSource.frag | ||
ColorDrawToMsVertexShaderSource.vert | ||
ConvertD32S8ToD24S8ShaderSource.comp | ||
ConvertIndexBufferShaderSource.comp | ||
ConvertIndirectDataShaderSource.comp | ||
DepthBlitFragmentShaderSource.frag | ||
DepthBlitMsFragmentShaderSource.frag | ||
DepthDrawToMsFragmentShaderSource.frag | ||
DepthDrawToNonMsFragmentShaderSource.frag | ||
DepthStencilClearFragmentShaderSource.frag | ||
StencilBlitFragmentShaderSource.frag | ||
StencilBlitMsFragmentShaderSource.frag | ||
StencilDrawToMsFragmentShaderSource.frag | ||
StencilDrawToNonMsFragmentShaderSource.frag |