From d6ee5b7177dfebcfbae0d41946540de1430c671f Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Mon, 8 Sep 2025 23:23:20 +0300 Subject: [PATCH] anv: remove divergence requirement Not required since we've disabled maintenance8 support. Signed-off-by: Lionel Landwerlin Fixes: d39e443ef8 ("anv: add infrastructure for common vk_pipeline") Reviewed-by: Ivan Briano Part-of: --- src/intel/vulkan/anv_shader_compile.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/intel/vulkan/anv_shader_compile.c b/src/intel/vulkan/anv_shader_compile.c index 684bd0d46f6..dd62ca2e8dc 100644 --- a/src/intel/vulkan/anv_shader_compile.c +++ b/src/intel/vulkan/anv_shader_compile.c @@ -1330,15 +1330,6 @@ anv_shader_lower_nir(struct anv_device *device, nir_lower_non_uniform_image_access | nir_lower_non_uniform_get_ssbo_size; - /* For textures, images, sampler, NonUniform decoration is required but not - * for offsets, so we rely on divergence information for this. Offsets used - * to be constants until KHR_maintenance8. - */ - if (device->vk.enabled_features.maintenance8) { - nir_foreach_function_impl(impl, nir) - nir_metadata_require(impl, nir_metadata_divergence); - } - /* In practice, most shaders do not have non-uniform-qualified * accesses (see * https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17558#note_1475069)