From 78433f70bd3b5a9c70f6b566a2f2b8b7161a6c4c Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Thu, 16 Mar 2017 01:55:07 -0500 Subject: [PATCH] Vulkan CP: Supply the correct endianness to resolve TextureInfo --- src/xenia/gpu/vulkan/vulkan_command_processor.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/xenia/gpu/vulkan/vulkan_command_processor.cc b/src/xenia/gpu/vulkan/vulkan_command_processor.cc index 543bb5618..c62866f1d 100644 --- a/src/xenia/gpu/vulkan/vulkan_command_processor.cc +++ b/src/xenia/gpu/vulkan/vulkan_command_processor.cc @@ -942,9 +942,14 @@ bool VulkanCommandProcessor::IssueCopy() { } } + Endian resolve_endian = Endian::k8in32; + if (copy_dest_endian <= Endian128::k16in32) { + resolve_endian = static_cast(copy_dest_endian); + } + // Demand a resolve texture from the texture cache. TextureInfo tex_info; - TextureInfo::PrepareResolve(copy_dest_base, copy_dest_format, Endian::k8in32, + TextureInfo::PrepareResolve(copy_dest_base, copy_dest_format, resolve_endian, dest_logical_width, dest_logical_height, &tex_info);