intel/isl: Add a score for DG2_RC_CCS

This enables the DG2 render compression modifier in anv. When I tested
this against vkcube, I observed that the full resolve which happened at
the end of every frame was converted to a partial resolve, allowing the
framebuffer to retain compression.

According to Caleb Callaway's testing, enabling this modifier positively
impacts the FPS of the following game benchmarks:

 - Strange Brigade.vk-g6              +12.78%
 - Strange Brigade.dx12vk-g6          + 9.33%
 - Shadow of the Tomb Raider.vk-g6-lx + 2.37%
 - Dota 2 (replay Jul 2020).vk-g6     + 2.28%

Thanks to Felix Degrood for pointing out that Strange Brigade would
benefit from this optimization.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24120>
This commit is contained in:
Nanley Chery
2023-05-04 13:36:55 -07:00
committed by Marge Bot
parent 15dec30877
commit 99ffa4043e
+8
View File
@@ -219,6 +219,14 @@ isl_drm_modifier_get_score(const struct intel_device_info *devinfo,
return 0;
return 3;
case I915_FORMAT_MOD_4_TILED_DG2_RC_CCS:
if (!intel_device_info_is_dg2(devinfo))
return 0;
if (INTEL_DEBUG(DEBUG_NO_CCS))
return 0;
return 4;
}
}