tu: Expose shaderStorageImage*WithoutFormat
authorConnor Abbott <cwabbott0@gmail.com>
Mon, 21 Sep 2020 12:04:27 +0000 (14:04 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 22 Sep 2020 14:54:40 +0000 (14:54 +0000)
We don't use the format anymore in the backend, except determining the
number of components, and we fallback to 4 there if it's not specified.
So we should be safe to enable this.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6800>

src/freedreno/vulkan/tu_device.c

index 9ca5e3a..15a71e8 100644 (file)
@@ -407,8 +407,8 @@ tu_GetPhysicalDeviceFeatures(VkPhysicalDevice physicalDevice,
       .shaderSampledImageArrayDynamicIndexing = true,
       .shaderStorageBufferArrayDynamicIndexing = true,
       .shaderStorageImageArrayDynamicIndexing = true,
-      .shaderStorageImageReadWithoutFormat = false,
-      .shaderStorageImageWriteWithoutFormat = false,
+      .shaderStorageImageReadWithoutFormat = true,
+      .shaderStorageImageWriteWithoutFormat = true,
       .shaderClipDistance = false,
       .shaderCullDistance = false,
       .shaderFloat64 = false,