mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-10-11 22:49:55 +00:00
rsx/nv3089: Clamp input height to 1 row
- Prevent underflow when calculating addresses. which can discard valid blit requests
This commit is contained in:
@@ -227,7 +227,7 @@ namespace rsx
|
||||
}
|
||||
else
|
||||
{
|
||||
const u16 read_h = std::min(static_cast<u16>(clip_h / scale_y), in_h);
|
||||
const u16 read_h = std::max<u16>(std::min(static_cast<u16>(clip_h / scale_y), in_h), 1);
|
||||
const u32 data_length = in_pitch * (read_h - 1) + src_line_length;
|
||||
|
||||
if (src_address = get_address(src_offset, src_dma, data_length); !src_address)
|
||||
|
||||
Reference in New Issue
Block a user