tu: Support VK_FORMAT_FEATURE_BLIT_SRC_BIT for texture-only formats
It turns out this is required for compressed formats, and we might as well enable it for the one other texture-only format too. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5098>
This commit is contained in:
parent
74f1c304e8
commit
518909290b
|
@ -379,7 +379,8 @@ tu_physical_device_get_format_properties(
|
|||
buffer |= VK_FORMAT_FEATURE_VERTEX_BUFFER_BIT;
|
||||
|
||||
if (native_fmt.supported & FMT_TEXTURE) {
|
||||
optimal |= VK_FORMAT_FEATURE_TRANSFER_SRC_BIT |
|
||||
optimal |= VK_FORMAT_FEATURE_BLIT_SRC_BIT |
|
||||
VK_FORMAT_FEATURE_TRANSFER_SRC_BIT |
|
||||
VK_FORMAT_FEATURE_TRANSFER_DST_BIT |
|
||||
VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT |
|
||||
VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT |
|
||||
|
@ -393,7 +394,6 @@ tu_physical_device_get_format_properties(
|
|||
if (native_fmt.supported & FMT_COLOR) {
|
||||
assert(native_fmt.supported & FMT_TEXTURE);
|
||||
optimal |= VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT |
|
||||
VK_FORMAT_FEATURE_BLIT_SRC_BIT |
|
||||
VK_FORMAT_FEATURE_BLIT_DST_BIT;
|
||||
|
||||
if (vk_format_is_float(format) ||
|
||||
|
|
Loading…
Reference in New Issue