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>
(cherry picked from commit 72fd126070)
This commit is contained in:
Tapani Pälli 2021-05-14 09:41:10 +03:00 committed by Eric Engestrom
parent ffdbd58d58
commit 33d52db1f0
2 changed files with 5 additions and 2 deletions

View file

@ -229,7 +229,7 @@
"description": "anv: require rendering support for blit destination feature",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": null
},

View file

@ -645,9 +645,12 @@ anv_get_image_format_features(const struct gen_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