Mesa (main): radv: set read/write without format flags for supported texel buffers
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Apr 12 16:12:52 UTC 2022
Module: Mesa
Branch: main
Commit: 6b65d4234cb77bd9f84ddd85cb43d0b9f50a67b6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b65d4234cb77bd9f84ddd85cb43d0b9f50a67b6
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Fri Apr 8 13:34:23 2022 -0400
radv: set read/write without format flags for supported texel buffers
if the storage case is supported, this should be supported too
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15826>
---
src/amd/vulkan/radv_formats.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c
index 154beb8ea4c..f8220d5f73b 100644
--- a/src/amd/vulkan/radv_formats.c
+++ b/src/amd/vulkan/radv_formats.c
@@ -751,7 +751,9 @@ radv_physical_device_get_format_properties(struct radv_physical_device *physical
if (!scaled)
buffer |= VK_FORMAT_FEATURE_2_UNIFORM_TEXEL_BUFFER_BIT;
}
- buffer |= VK_FORMAT_FEATURE_2_STORAGE_TEXEL_BUFFER_BIT;
+ buffer |= VK_FORMAT_FEATURE_2_STORAGE_TEXEL_BUFFER_BIT |
+ VK_FORMAT_FEATURE_2_STORAGE_READ_WITHOUT_FORMAT_BIT |
+ VK_FORMAT_FEATURE_2_STORAGE_WRITE_WITHOUT_FORMAT_BIT;
}
if (vk_format_is_depth_or_stencil(format)) {
More information about the mesa-commit
mailing list