From 57f162c3c4a6a18b5cd81d766fb1ae0ab15be480 Mon Sep 17 00:00:00 2001 From: Elad <18193363+elad335@users.noreply.github.com> Date: Tue, 13 Jan 2026 14:13:34 +0200 Subject: [PATCH] rsx/nv3089: Fix wrong suggestion --- rpcs3/Emu/RSX/NV47/HW/nv3089.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rpcs3/Emu/RSX/NV47/HW/nv3089.cpp b/rpcs3/Emu/RSX/NV47/HW/nv3089.cpp index 8f35c5a860..111611d887 100644 --- a/rpcs3/Emu/RSX/NV47/HW/nv3089.cpp +++ b/rpcs3/Emu/RSX/NV47/HW/nv3089.cpp @@ -187,8 +187,7 @@ namespace rsx const u32 in_offset = in_x * in_bpp + in_pitch * in_y; const u32 out_offset = out_x * out_bpp + out_pitch * out_y; - const u32 in_width_min = std::min(clip_h > 1 && in_pitch > 0 ? (in_pitch / in_bpp) : in_w, in_w); - const u32 src_line_length = (in_width_min * in_bpp); + const u32 src_line_length = (std::min(in_w, in_x + static_cast(std::ceil(clip_w / scale_x))) * in_bpp); u32 src_address = 0; const u32 dst_address = get_address(dst_offset, dst_dma, 1); // TODO: Add size