diff options
author | gdkchan <gab.dark.100@gmail.com> | 2024-02-10 20:41:17 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-11 00:41:17 +0100 |
commit | 6a8ac389e5038b34fdbbd6641fdf786dace64088 (patch) | |
tree | 2dbfe10fec9ab85e595206b9d39cd325f184c40c | |
parent | 8dd1eb333c316c06e4a0f54485f4e7b6567fb60d (diff) |
Fix mip offset/size for full 3D texture upload on Vulkan (#6294)1.1.1182
-rw-r--r-- | src/Ryujinx.Graphics.Vulkan/TextureView.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Ryujinx.Graphics.Vulkan/TextureView.cs b/src/Ryujinx.Graphics.Vulkan/TextureView.cs index 393db261..ef511565 100644 --- a/src/Ryujinx.Graphics.Vulkan/TextureView.cs +++ b/src/Ryujinx.Graphics.Vulkan/TextureView.cs @@ -839,7 +839,9 @@ namespace Ryujinx.Graphics.Vulkan for (int level = 0; level < levels; level++) { - int mipSize = GetBufferDataLength(Info.GetMipSize2D(dstLevel + level) * dstLayers); + int mipSize = GetBufferDataLength(is3D && !singleSlice + ? Info.GetMipSize(dstLevel + level) + : Info.GetMipSize2D(dstLevel + level) * dstLayers); int endOffset = offset + mipSize; |