mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
intel/isl: Add scores for GEN12_RC_CCS and MTL_RC_CCS
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>
This commit is contained in:
parent
9e402e93d2
commit
d57611fe25
1 changed files with 16 additions and 0 deletions
|
|
@ -214,6 +214,14 @@ isl_drm_modifier_get_score(const struct intel_device_info *devinfo,
|
|||
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. */
|
||||
|
|
@ -228,6 +236,14 @@ isl_drm_modifier_get_score(const struct intel_device_info *devinfo,
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue