anv: Disable fast-clears on linear surfaces

Bspec 57340 does not have a fast-clear rectangle for linear surfaces.

Reviewed-by: Jianxun Zhang <jianxun.zhang@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32120>
This commit is contained in:
Nanley Chery
2024-11-12 13:14:45 -05:00
committed by Marge Bot
parent 93dbfea720
commit dd3b0de42c

View File

@@ -3408,6 +3408,12 @@ anv_layout_to_fast_clear_type(const struct intel_device_info * const devinfo,
if (image->planes[plane].aux_usage == ISL_AUX_USAGE_NONE)
return ANV_FAST_CLEAR_NONE;
/* Bspec 57340 (r68483) has no fast-clear rectangle for linear surfaces. */
if (image->planes[plane].primary_surface.isl.tiling == ISL_TILING_LINEAR) {
assert(devinfo->ver >= 20);
return ANV_FAST_CLEAR_NONE;
}
/* Xe2+ platforms don't have fast clear type and can always support
* arbitrary fast-clear values.
*/