From 4e6095ff61efef9d27323494147c97fc16d61052 Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Wed, 15 Feb 2017 01:00:07 +0100 Subject: [PATCH] radv: Add support for shaderStorageImageReadWithoutFormat. Signed-off-by: Bas Nieuwenhuizen Reviewed-by: Edward O'Callaghan Reviewed-by: Dave Airlie --- src/amd/vulkan/radv_device.c | 2 +- src/amd/vulkan/radv_pipeline.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 9185ef16dc0..be0d9d933fc 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -463,7 +463,7 @@ void radv_GetPhysicalDeviceFeatures( .shaderSampledImageArrayDynamicIndexing = true, .shaderStorageBufferArrayDynamicIndexing = true, .shaderStorageImageArrayDynamicIndexing = true, - .shaderStorageImageReadWithoutFormat = false, + .shaderStorageImageReadWithoutFormat = true, .shaderStorageImageWriteWithoutFormat = true, .shaderClipDistance = true, .shaderCullDistance = true, diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 722e58ddbee..723c32c4aaf 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -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, -- 2.30.2