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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user