Now that these CCS-enabled modifiers have non-zero scores, anv is
enabled to use them.
We found this to improve the performance of Borderlands 3 by 18.73%.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6701
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jianxun Zhang <jianxun.zhang@intel.com>
Tested-by: Jianxun Zhang <jianxun.zhang@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25003>
if (INTEL_DEBUG(DEBUG_NO_CCS))
return 0;
+ return 4;
+ case I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS:
+ if (devinfo->verx10 != 120)
+ return 0;
+
+ if (INTEL_DEBUG(DEBUG_NO_CCS))
+ return 0;
+
return 4;
case I915_FORMAT_MOD_4_TILED:
/* Gfx12.5 introduces Tile4. */
if (INTEL_DEBUG(DEBUG_NO_CCS))
return 0;
+ return 4;
+ case I915_FORMAT_MOD_4_TILED_MTL_RC_CCS:
+ if (!intel_device_info_is_mtl(devinfo))
+ return 0;
+
+ if (INTEL_DEBUG(DEBUG_NO_CCS))
+ return 0;
+
return 4;
}
}