anv: fixup spirv cap for ImageReadWithoutFormat on Gfx12.5

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>
This commit is contained in:
Lionel Landwerlin
2023-10-05 22:28:26 +03:00
committed by Marge Bot
parent 80d837cf40
commit fe05e6610b

View 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,