1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 12:12:50 +01:00

vk: Fix mip level packed pitch calculation

This commit is contained in:
kd-11 2021-04-12 23:56:20 +03:00 committed by kd-11
parent 06dc99ab85
commit 8d1fc18941

View File

@ -856,8 +856,8 @@ namespace vk
if (!rsx::is_compressed_host_format(format))
{
const auto host_texel_width = vk::get_format_texel_width(dst_image->format());
const auto host_packed_pitch = host_texel_width * dst_image->width();
row_pitch = std::max(row_pitch, host_packed_pitch);
const auto host_packed_pitch = host_texel_width * layout.width_in_texel;
row_pitch = std::max<u32>(row_pitch, host_packed_pitch);
upload_pitch_in_texel = row_pitch / host_texel_width;
}
else