73637dbce4
blorp_copy_get_formats() tries to make the source and destination view formats match as much as possible. This avoids some casting in the copy shader, but it makes determining the format that will be used for a surface impossible without having the ISL surface for both that surface and a source or destination. We'd like to enable the Vulkan driver to know as early as possible what format an image may be reinterpreted as for correctness. So, determine the copy formats more independently and expose a helper which does so for drivers. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31136>