anv: fixup spirv cap for ImageReadWithoutFormat on Gfx12.5
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 5 Oct 2023 19:28:26 +0000 (22:28 +0300)
committerMarge Bot <emma+marge@anholt.net>
Thu, 12 Oct 2023 18:57:55 +0000 (18:57 +0000)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 2e2491b76c ("anv: enable shaderStorageImageReadWithoutFormat on Gfx12.5+")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25573>

src/intel/vulkan/anv_pipeline.c

index bb2607feb5e1db4292c735a0d4840dce610ebe1b..52f97aec3125ce7de7f67a6d2e5aabe34d16c786 100644 (file)
@@ -163,7 +163,10 @@ anv_shader_stage_to_nir(struct anv_device *device,
           * read/write without format is per format, so just report true. It's
           * up to the application to check.
           */
-         .image_read_without_format = instance->vk.app_info.api_version >= VK_API_VERSION_1_3 || device->vk.enabled_extensions.KHR_format_feature_flags2,
+         .image_read_without_format =
+            pdevice->info.verx10 >= 125 ||
+            instance->vk.app_info.api_version >= VK_API_VERSION_1_3 ||
+            device->vk.enabled_extensions.KHR_format_feature_flags2,
          .image_write_without_format = true,
          .int8 = true,
          .int16 = true,