radv: Add support for shaderStorageImageWriteWithoutFormat.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 14 Feb 2017 23:55:19 +0000 (00:55 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 15 Feb 2017 20:18:13 +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 1132eeb52d7246740cb1d67854abfb9410e95e1b..9185ef16dc04e3ac2c5a2c3ac0b47af11c0196a8 100644 (file)
@@ -464,7 +464,7 @@ void radv_GetPhysicalDeviceFeatures(
                .shaderStorageBufferArrayDynamicIndexing  = true,
                .shaderStorageImageArrayDynamicIndexing   = true,
                .shaderStorageImageReadWithoutFormat      = false,
-               .shaderStorageImageWriteWithoutFormat     = false,
+               .shaderStorageImageWriteWithoutFormat     = true,
                .shaderClipDistance                       = true,
                .shaderCullDistance                       = true,
                .shaderFloat64                            = true,
index cbd846a710181ccc4348b5f9704d01195c224952..722e58ddbeebeccfe0ef30b1fb8d38009dbc6469 100644 (file)
@@ -208,7 +208,8 @@ radv_shader_compile_to_nir(struct radv_device *device,
                }
                const struct nir_spirv_supported_extensions supported_ext = {
                        .draw_parameters = true,
-                       .float64 = true
+                       .float64 = true,
+                       .image_write_without_format = true,
                };
                entry_point = spirv_to_nir(spirv, module->size / 4,
                                           spec_entries, num_spec_entries,