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@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15826>
This commit is contained in:
Mike Blumenkrantz
2022-04-08 13:34:23 -04:00
committed by Marge Bot
parent 2b688942c1
commit 6b65d4234c
+3 -1
View File
@@ -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)) {