From cd1345b6bb477548c89f9b183a19c000216ecb6a Mon Sep 17 00:00:00 2001 From: kd-11 Date: Thu, 5 Sep 2019 16:08:16 +0300 Subject: [PATCH] rsx: Do not use nul section if resolution scaling is active on a surface --- rpcs3/Emu/RSX/Common/texture_cache.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rpcs3/Emu/RSX/Common/texture_cache.h b/rpcs3/Emu/RSX/Common/texture_cache.h index 0f5e6cdd4f..1d7fa9bbc4 100644 --- a/rpcs3/Emu/RSX/Common/texture_cache.h +++ b/rpcs3/Emu/RSX/Common/texture_cache.h @@ -2502,6 +2502,14 @@ namespace rsx typeless_info.src_scaling_hint = (f32)bpp / src_bpp; typeless_info.src_gcm_format = src_is_argb8 ? CELL_GCM_TEXTURE_A8R8G8B8 : CELL_GCM_TEXTURE_R5G6B5; } + + if (surf->get_surface_width(rsx::surface_metrics::pixels) != surf->width() || + surf->get_surface_height(rsx::surface_metrics::pixels) != surf->height()) + { + // Must go through a scaling operation due to resolution scaling being present + verify(HERE), g_cfg.video.resolution_scale_percent != 100; + use_null_region = false; + } } if (dst_is_render_target)