pan/bi: Lower is_helper_invocation

Needed for VK_EXT_shader_demote_to_helper_invocation.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34676>
This commit is contained in:
Boris Brezillon 2025-04-24 09:51:06 +02:00 committed by Marge Bot
parent 59c307a3f3
commit cd4400e27b

View file

@ -5796,7 +5796,11 @@ bifrost_preprocess_nir(nir_shader *nir, unsigned gpu_id)
NIR_PASS(_, nir, nir_lower_ssbo, &ssbo_opts);
NIR_PASS(_, nir, pan_lower_sample_pos);
NIR_PASS(_, nir, pan_lower_helper_invocation);
if (nir->info.stage == MESA_SHADER_FRAGMENT) {
NIR_PASS(_, nir, nir_lower_is_helper_invocation);
NIR_PASS(_, nir, pan_lower_helper_invocation);
}
/*
* Lower subgroups ops before lowering int64: nir_lower_int64 doesn't know