From fc1bd0f3793f61fc264271889a634f8cc5d884a1 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Fri, 25 Mar 2016 17:29:39 -0500 Subject: [PATCH] Fix texture uploads --- src/xenia/gpu/vulkan/texture_cache.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/xenia/gpu/vulkan/texture_cache.cc b/src/xenia/gpu/vulkan/texture_cache.cc index 500d6ac25..686c5314d 100644 --- a/src/xenia/gpu/vulkan/texture_cache.cc +++ b/src/xenia/gpu/vulkan/texture_cache.cc @@ -588,12 +588,12 @@ bool TextureCache::UploadTexture2D( // For now, just transfer the grid we uploaded earlier into the texture. VkBufferImageCopy copy_region; copy_region.bufferOffset = alloc->offset; - copy_region.bufferRowLength = src.size_2d.input_width; - copy_region.bufferImageHeight = src.size_2d.input_height; + copy_region.bufferRowLength = src.width + 1; + copy_region.bufferImageHeight = src.height + 1; copy_region.imageSubresource = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 0, 1}; copy_region.imageOffset = {0, 0, 0}; - copy_region.imageExtent = {dest->texture_info.size_2d.output_width + 1, - dest->texture_info.size_2d.output_height + 1, + copy_region.imageExtent = {dest->texture_info.width + 1, + dest->texture_info.height + 1, dest->texture_info.depth + 1}; vkCmdCopyBufferToImage(command_buffer, staging_buffer_.gpu_buffer(), dest->image, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, 1,