803a569fdf
This is useful for iris to know what formats will be used for copy operations. The new function introduces a couple refactors. It makes use of the ISL_GFX_VER() macro and it also makes more use of the isl_surf_usage_is_depth() function. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23087>