From 4f8b5849b7bedd38b51c5ad7928482438bf2861a Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sat, 22 Jan 2022 14:00:45 +0300 Subject: [PATCH] rsx: Take depth into account when calculating coverage --- 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 a685b36f10..76fd834c40 100644 --- a/rpcs3/Emu/RSX/Common/texture_cache.h +++ b/rpcs3/Emu/RSX/Common/texture_cache.h @@ -226,7 +226,7 @@ namespace rsx if (external_subresource_desc.op != deferred_request_command::atlas_gather) return true; - const int target_area = (external_subresource_desc.width * external_subresource_desc.height * threshold) / 100; + const int target_area = (external_subresource_desc.width * external_subresource_desc.height * external_subresource_desc.depth * threshold) / 100; int covered_area = 0; areai bbox{smax, smax, 0, 0};