From 45f416c4f1ca9934dd45d243049cbb780663e93b Mon Sep 17 00:00:00 2001 From: kd-11 Date: Tue, 2 May 2023 18:16:14 +0300 Subject: [PATCH] rsx: Apply swizzle flag on data source as well - The fact that the attribute is tacked on to the dest is a semantic error. It's the context that is swz\ln, not the source or dest. They both are one or the other. --- 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 2ab6038c20..35745a5242 100644 --- a/rpcs3/Emu/RSX/Common/texture_cache.h +++ b/rpcs3/Emu/RSX/Common/texture_cache.h @@ -2924,7 +2924,7 @@ namespace rsx invalidate_range_impl_base(cmd, rsx_range, invalidation_cause::read, std::forward(extras)...); cached_src = upload_image_from_cpu(cmd, rsx_range, image_width, image_height, 1, 1, src.pitch, gcm_format, texture_upload_context::blit_engine_src, - subresource_layout, rsx::texture_dimension_extended::texture_dimension_2d, false); + subresource_layout, rsx::texture_dimension_extended::texture_dimension_2d, dst.swizzled); typeless_info.src_gcm_format = gcm_format; }