From 2e2491b76cdfc93ea33b1330caf36764c5515b68 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Tue, 18 Apr 2023 15:26:41 +0300 Subject: [PATCH] anv: enable shaderStorageImageReadWithoutFormat on Gfx12.5+ Signed-off-by: Lionel Landwerlin Reviewed-by: Ivan Briano Part-of: --- src/intel/vulkan/anv_device.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index ee892d79468..f82d870908f 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -1249,7 +1249,10 @@ void anv_GetPhysicalDeviceFeatures2( .shaderImageGatherExtended = true, .shaderStorageImageExtendedFormats = true, .shaderStorageImageMultisample = false, - .shaderStorageImageReadWithoutFormat = false, + /* Gfx12.5 has all the required format supported in HW for typed + * read/writes + */ + .shaderStorageImageReadWithoutFormat = pdevice->info.verx10 >= 125, .shaderStorageImageWriteWithoutFormat = true, .shaderUniformBufferArrayDynamicIndexing = true, .shaderSampledImageArrayDynamicIndexing = true,