mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-14 06:40:53 +00:00
rsx: Minor fixes
- Fix transfer scaling (inverted) - Fix under-estimated typeless acquisition when doing depth format scaling
This commit is contained in:
parent
e02e27b2b3
commit
e3cf3ab6b8
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user