anv: Use nir_lower_memory_model

This replaces NIR_MEMORY_MAKE_{AVALIABLE,VISIBLE} with COHERENT.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40833>
This commit is contained in:
Kenneth Graunke 2026-03-13 16:15:01 -07:00 committed by Marge Bot
parent 0c0fea1cdb
commit b391f2d888

View file

@ -1447,6 +1447,8 @@ anv_shader_lower_nir(struct anv_device *device,
nir_shader_gather_info(nir, nir_shader_get_entrypoint(nir));
NIR_PASS(_, nir, nir_lower_memory_model);
/* Apply lowering for 64bit atomics pre-Xe2 */
const bool lower_64bit_atomics = devinfo->ver < 20;