From 1a4444625053665436399bb19f2b7e38b610601c Mon Sep 17 00:00:00 2001 From: kd-11 Date: Fri, 15 Mar 2019 15:22:22 +0300 Subject: [PATCH] rsx: Fix dst upload block region - The section needed starts at image origin, not transfer origin! --- rpcs3/Emu/RSX/Common/texture_cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/Common/texture_cache.h b/rpcs3/Emu/RSX/Common/texture_cache.h index 84455c943a..35aea96541 100644 --- a/rpcs3/Emu/RSX/Common/texture_cache.h +++ b/rpcs3/Emu/RSX/Common/texture_cache.h @@ -2630,7 +2630,7 @@ namespace rsx subres.height_in_block = dst_dimensions.height; subres.pitch_in_block = pitch_in_block; subres.depth = 1; - subres.data = { (const gsl::byte*)dst.pixels, dst.pitch * dst_dimensions.height }; + subres.data = { reinterpret_cast(vm::base(dst.rsx_address)), dst.pitch * dst_dimensions.height }; subresource_layout.push_back(subres); cached_dest = upload_image_from_cpu(cmd, rsx_range, dst_dimensions.width, dst_dimensions.height, 1, 1, dst.pitch,