summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2017-02-15 01:00:07 +0100
committerBas Nieuwenhuizen <[email protected]>2017-02-15 21:18:21 +0100
commit4e6095ff61efef9d27323494147c97fc16d61052 (patch)
tree15cb52bf845e5c7d43bd54ec3b9f71747662385e /src
parent501a4c0d73b441d40b3a2532b8e8103f268f7996 (diff)
radv: Add support for shaderStorageImageReadWithoutFormat.
Signed-off-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Edward O'Callaghan <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/amd/vulkan/radv_device.c2
-rw-r--r--src/amd/vulkan/radv_pipeline.c1
2 files changed, 2 insertions, 1 deletions
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,