Skip to content

Commit

Permalink
vk: Fix mip level packed pitch calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
kd-11 committed Apr 12, 2021
1 parent 06dc99a commit 8d1fc18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpcs3/Emu/RSX/VK/VKTexture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d1fc18

Please sign in to comment.