mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-17 03:08:07 +02:00
pvr: Enable VK_FORMAT_FEATURE_2_TRANSFER_SRC_BIT flag
This is needed for the VK_EXT_extended_dynamic_state tests to pass. Signed-off-by: Vlad Schiller <vlad-radu.schiller@imgtec.com> Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36412>
This commit is contained in:
parent
b77ebcf69c
commit
bfb0e1ae62
1 changed files with 6 additions and 2 deletions
|
|
@ -605,7 +605,8 @@ pvr_get_image_format_features2(const struct pvr_format *pvr_format,
|
|||
0);
|
||||
|
||||
flags |= VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_BIT |
|
||||
VK_FORMAT_FEATURE_2_BLIT_SRC_BIT;
|
||||
VK_FORMAT_FEATURE_2_BLIT_SRC_BIT |
|
||||
VK_FORMAT_FEATURE_2_TRANSFER_SRC_BIT;
|
||||
|
||||
if (!vk_format_is_int(vk_format) &&
|
||||
!vk_format_is_depth_or_stencil(vk_format) &&
|
||||
|
|
@ -615,7 +616,8 @@ pvr_get_image_format_features2(const struct pvr_format *pvr_format,
|
|||
}
|
||||
} else if (!vk_format_is_block_compressed(vk_format)) {
|
||||
flags |= VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_BIT |
|
||||
VK_FORMAT_FEATURE_2_BLIT_SRC_BIT;
|
||||
VK_FORMAT_FEATURE_2_BLIT_SRC_BIT |
|
||||
VK_FORMAT_FEATURE_2_TRANSFER_SRC_BIT;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -722,6 +724,8 @@ pvr_get_buffer_format_features2(const struct pvr_format *pvr_format)
|
|||
|
||||
desc = vk_format_description(vk_format);
|
||||
|
||||
flags |= VK_FORMAT_FEATURE_2_TRANSFER_SRC_BIT;
|
||||
|
||||
if (desc->layout == UTIL_FORMAT_LAYOUT_PLAIN &&
|
||||
desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB) {
|
||||
flags |= VK_FORMAT_FEATURE_2_VERTEX_BUFFER_BIT;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue