mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
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:
parent
a40714abf7
commit
72fd126070
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue