diff options
| author | Iago Toral Quiroga <itoral@igalia.com> | 2020-03-24 09:57:02 +0100 |
|---|---|---|
| committer | Marge Bot <eric+marge@anholt.net> | 2020-10-13 21:21:28 +0000 |
| commit | 19841fd5502b0b69f97ab11738b81f6732fce2b8 (patch) | |
| tree | 879d90c9bc3daa7eb37787b25405157eb8a465e0 /src | |
| parent | 9e7403d7912345aa86319bf6e91fe90a09fd974b (diff) | |
v3dv: check support for transfer usage flags
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
Diffstat (limited to 'src')
| -rw-r--r-- | src/broadcom/vulkan/v3dv_formats.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/broadcom/vulkan/v3dv_formats.c b/src/broadcom/vulkan/v3dv_formats.c index 9f54f816a30..0d1faafecb3 100644 --- a/src/broadcom/vulkan/v3dv_formats.c +++ b/src/broadcom/vulkan/v3dv_formats.c @@ -494,6 +494,18 @@ get_image_format_properties( if (!format_feature_flags) goto unsupported; + if (info->usage & VK_IMAGE_USAGE_TRANSFER_SRC_BIT) { + if (!(format_feature_flags & VK_FORMAT_FEATURE_TRANSFER_SRC_BIT)) { + goto unsupported; + } + } + + if (info->usage & VK_IMAGE_USAGE_TRANSFER_DST_BIT) { + if (!(format_feature_flags & VK_FORMAT_FEATURE_TRANSFER_DST_BIT)) { + goto unsupported; + } + } + if (info->usage & VK_IMAGE_USAGE_SAMPLED_BIT) { if (!(format_feature_flags & VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT)) { goto unsupported; |
