intel/blorp: Use get_copy_format_for_bpb more for gfx12.5

Use get_copy_format_for_bpb() instead of
get_ccs_compatible_uint_format() when performing blorp_copy(). This
matches the code path taken on gfx20 and increases the testing of cases
which would impact gfx12.0 in isl_get_sampler_clear_field_offset().

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35329>
This commit is contained in:
Nanley Chery 2025-06-04 10:14:14 -04:00 committed by Marge Bot
parent 27a5d84632
commit 69d91ae975

View file

@ -2779,11 +2779,11 @@ blorp_copy_get_color_format(const struct isl_device *isl_dev,
* to properly interpret the clear color of imported dmabuf surfaces.
*/
return surf_format;
} else if (ISL_GFX_VER(isl_dev) <= 12 &&
} else if (ISL_GFX_VERX10(isl_dev) <= 120 &&
isl_format_supports_ccs_e(isl_dev->info, surf_format)) {
/* On gfx9-12, choose a copy format that maintains compatibility with
/* On gfx9-12.0, choose a copy format that maintains compatibility with
* CCS_E. Although format reinterpretation doesn't affect compression
* support while rendering on gfx12, the sampler does have reduced
* support while rendering on gfx12.0, the sampler does have reduced
* support for compression when the bits-per-channel changes.
*/
return get_ccs_compatible_uint_format(fmtl);