From 41e7d2aa0a05bb81a037d5f9b556a6de58a454d7 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Mon, 18 Nov 2019 22:13:29 +0300 Subject: [PATCH] rsx: Select correct image aspect for blit engine targets. --- rpcs3/Emu/RSX/Common/texture_cache.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/Common/texture_cache.h b/rpcs3/Emu/RSX/Common/texture_cache.h index 272d13b1f1..9499584a28 100644 --- a/rpcs3/Emu/RSX/Common/texture_cache.h +++ b/rpcs3/Emu/RSX/Common/texture_cache.h @@ -2441,7 +2441,9 @@ namespace rsx typeless_info.src_context = texture_upload_context::framebuffer_storage; } - const auto preferred_dst_format = helpers::get_sized_blit_format(dst_is_argb8, dst_is_depth_surface); + const auto src_is_depth_format = helpers::is_gcm_depth_format(typeless_info.src_gcm_format); + const auto preferred_dst_format = helpers::get_sized_blit_format(dst_is_argb8, src_is_depth_format); + if (cached_dest && !use_null_region) { // Prep surface