aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2020-05-18 19:16:48 +0200
committerMarge Bot <[email protected]>2020-05-19 19:55:11 +0000
commit518909290b0123f3bcfec8d6854c25ce451c44e8 (patch)
tree5d770b993880b9ec467c68a51fa706ae6156253e /src
parent74f1c304e8d0ba53f9b079684a5e06ca08b0c5f4 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/freedreno/vulkan/tu_formats.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/freedreno/vulkan/tu_formats.c b/src/freedreno/vulkan/tu_formats.c
index 8ae18433826..3dadbe1315b 100644
--- a/src/freedreno/vulkan/tu_formats.c
+++ b/src/freedreno/vulkan/tu_formats.c
@@ -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) ||