From: Bas Nieuwenhuizen Date: Wed, 15 Feb 2017 00:00:07 +0000 (+0100) Subject: radv: Add support for shaderStorageImageReadWithoutFormat. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4e6095ff61efef9d27323494147c97fc16d61052;p=mesa.git radv: Add support for shaderStorageImageReadWithoutFormat. Signed-off-by: Bas Nieuwenhuizen Reviewed-by: Edward O'Callaghan Reviewed-by: Dave Airlie --- 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,