From ea8409dcfd86aed4c448f4cdae74ad2352720d51 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Tue, 4 Jun 2019 19:01:53 +0300 Subject: [PATCH] rsx: Re-enable optional sample-to-pixel transformation --- rpcs3/Emu/RSX/Common/texture_cache.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/rpcs3/Emu/RSX/Common/texture_cache.h b/rpcs3/Emu/RSX/Common/texture_cache.h index b1664c98a9..ea77f35312 100644 --- a/rpcs3/Emu/RSX/Common/texture_cache.h +++ b/rpcs3/Emu/RSX/Common/texture_cache.h @@ -2889,15 +2889,17 @@ namespace rsx } } - if (0)//src_is_render_target) + if (src_is_render_target && + dynamic_cast(vram_texture) != nullptr) { - // TODO: Specify typeless for high sample counts + // The resource is of surface type; possibly disabled AA emulation src_subres.surface->transform_samples_to_pixels(src_area); } - if (0)//dst_is_render_target) + if (dst_is_render_target && + dynamic_cast(dest_texture) != nullptr) { - // TODO: Specify typeless for high sample counts + // The resource is of surface type; possibly disabled AA emulation dst_subres.surface->transform_samples_to_pixels(dst_area); }