Vulkan CP: Supply the correct endianness to resolve TextureInfo

This commit is contained in:
Dr. Chat 2017-03-16 01:55:07 -05:00
parent b4c4ad4e76
commit 78433f70bd
1 changed files with 6 additions and 1 deletions

View File

@ -942,9 +942,14 @@ bool VulkanCommandProcessor::IssueCopy() {
}
}
Endian resolve_endian = Endian::k8in32;
if (copy_dest_endian <= Endian128::k16in32) {
resolve_endian = static_cast<Endian>(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);