0
0
Fork 0
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2024-12-22 22:05:45 +00:00

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

This commit is contained in:
gdkchan 2024-02-10 20:41:17 -03:00 committed by GitHub
parent 8dd1eb333c
commit 6a8ac389e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;