ir3: Use elect_any_ir3 in preambles

This fixes SP_FS_PREFETCH_CNTL::ENDOFQUAD not being used when there's a
preamble and texture prefetches.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29914>
This commit is contained in:
Connor Abbott
2024-06-26 07:55:28 -04:00
committed by Marge Bot
parent ec37e65a2d
commit 65298586b8

View File

@@ -444,7 +444,7 @@ ir3_nir_lower_preamble(nir_shader *nir, struct ir3_shader_variant *v)
nir_if *outer_if = nir_push_if(b, nir_preamble_start_ir3(b, 1));
{
nir_if *inner_if = nir_push_if(b, nir_elect(b, 1));
nir_if *inner_if = nir_push_if(b, nir_elect_any_ir3(b, 1));
{
nir_call_instr *call = nir_call_instr_create(nir, main->preamble);
nir_builder_instr_insert(b, &call->instr);