rsx: Minor fixes

- Fix transfer scaling (inverted)
- Fix under-estimated typeless acquisition when doing depth format scaling
This commit is contained in:
kd-11 2019-05-10 10:50:53 +03:00 committed by kd-11
parent e02e27b2b3
commit e3cf3ab6b8
2 changed files with 3 additions and 3 deletions

View File

@ -214,8 +214,8 @@ namespace rsx
old_contents.dst_x /= bytes_to_texels_x2;
old_contents.dst_y /= rows_to_texels_y2;
old_contents.transfer_scale_x = f32(bytes_to_texels_x2) / bytes_to_texels_x;
old_contents.transfer_scale_y = f32(rows_to_texels_y2) / rows_to_texels_y;
old_contents.transfer_scale_x = f32(bytes_to_texels_x) / bytes_to_texels_x2;
old_contents.transfer_scale_y = f32(rows_to_texels_y) / rows_to_texels_y2;
}
// Apply resolution scale if needed

View File

@ -439,7 +439,7 @@ namespace vk
vkCmdCopyBufferToImage(cmd, scratch_buf->value, dst, preferred_dst_format, 1, &info);
};
const u32 typeless_w = dst_rect.width();
const u32 typeless_w = std::max(dst_rect.width(), src_rect.width());
const u32 typeless_h = src_rect.height() + dst_rect.height();
switch (src_format)