nir/lower_amul: make use nir_shader_clear_pass_flags(..)

Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23931>
This commit is contained in:
Christian Gmeiner 2023-06-21 14:04:16 +02:00 committed by Marge Bot
parent fada46cf99
commit 36b0cff774

View file

@ -235,14 +235,7 @@ nir_lower_amul(nir_shader *shader,
}
}
/* clear pass flags: */
nir_foreach_function_impl(impl, shader) {
nir_foreach_block(block, impl) {
nir_foreach_instr(instr, block) {
instr->pass_flags = 0;
}
}
}
nir_shader_clear_pass_flags(shader);
nir_foreach_function_impl(impl, shader) {
nir_foreach_block(block, impl) {