Module: Mesa Branch: main Commit: 2e2491b76cdfc93ea33b1330caf36764c5515b68 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2e2491b76cdfc93ea33b1330caf36764c5515b68
Author: Lionel Landwerlin <[email protected]> Date: Tue Apr 18 15:26:41 2023 +0300 anv: enable shaderStorageImageReadWithoutFormat on Gfx12.5+ Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Ivan Briano <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22552> --- 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,
