radv: Add support for shaderStorageImageReadWithoutFormat.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 15 Feb 2017 00:00:07 +0000 (01:00 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 15 Feb 2017 20:18:21 +0000 (21:18 +0100)
Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_pipeline.c

index 9185ef16dc04e3ac2c5a2c3ac0b47af11c0196a8..be0d9d933fc67b51477bdbb2702ab57ead425d2c 100644 (file)
@@ -463,7 +463,7 @@ void radv_GetPhysicalDeviceFeatures(
                .shaderSampledImageArrayDynamicIndexing   = true,
                .shaderStorageBufferArrayDynamicIndexing  = true,
                .shaderStorageImageArrayDynamicIndexing   = true,
-               .shaderStorageImageReadWithoutFormat      = false,
+               .shaderStorageImageReadWithoutFormat      = true,
                .shaderStorageImageWriteWithoutFormat     = true,
                .shaderClipDistance                       = true,
                .shaderCullDistance                       = true,
index 722e58ddbeebeccfe0ef30b1fb8d38009dbc6469..723c32c4aaf3f9c694f630093b8fa564a30496ff 100644 (file)
@@ -209,6 +209,7 @@ radv_shader_compile_to_nir(struct radv_device *device,
                const struct nir_spirv_supported_extensions supported_ext = {
                        .draw_parameters = true,
                        .float64 = true,
+                       .image_read_without_format = true,
                        .image_write_without_format = true,
                };
                entry_point = spirv_to_nir(spirv, module->size / 4,