Explorar el Código

Fix mip offset/size for full 3D texture upload on Vulkan (#6294)

gdkchan hace 2 años
padre
commit
6a8ac389e5
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/Ryujinx.Graphics.Vulkan/TextureView.cs

+ 3 - 1
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;