ac/nir: fix nir_metadata value of ac_nir_lower_image_opcodes

This pass can insert new blocks so 'nir_metadata_control_flow' is not
preserved.

Fixes: eaf98b1422 ("ac/nir: implement image opcode emulation for CDNA, enable it in radeonsi")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34241>
This commit is contained in:
Pierre-Eric Pelloux-Prayer
2025-03-26 16:07:48 +01:00
parent 97e8872f1c
commit 785df1b980
@@ -513,6 +513,6 @@ static bool lower_image_opcodes(nir_builder *b, nir_instr *instr, void *data)
bool ac_nir_lower_image_opcodes(nir_shader *nir)
{
return nir_shader_instructions_pass(nir, lower_image_opcodes,
nir_metadata_control_flow,
nir_metadata_none,
NULL);
}