anv: require rendering support for blit destination feature

This fixes some new cts tests that exercise blitting
between compressed and uncompressed formats.

Cc: mesa-stable
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10830>
This commit is contained in:
Tapani Pälli 2021-05-14 09:41:10 +03:00 committed by Marge Bot
parent a40714abf7
commit 72fd126070

View file

@ -646,9 +646,12 @@ anv_get_image_format_features(const struct intel_device_info *devinfo,
if (flags) {
flags |= VK_FORMAT_FEATURE_BLIT_SRC_BIT |
VK_FORMAT_FEATURE_BLIT_DST_BIT |
VK_FORMAT_FEATURE_TRANSFER_SRC_BIT |
VK_FORMAT_FEATURE_TRANSFER_DST_BIT;
/* Blit destination requires rendering support. */
if (isl_format_supports_rendering(devinfo, plane_format.isl_format))
flags |= VK_FORMAT_FEATURE_BLIT_DST_BIT;
}
/* XXX: We handle 3-channel formats by switching them out for RGBX or