mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 14:50:11 +01:00
nir: add helper to clear all pass_flags
Will be used in different places so lets move it to a common place. 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:
parent
690549f1b6
commit
fada46cf99
2 changed files with 14 additions and 0 deletions
|
|
@ -2264,6 +2264,18 @@ nir_index_instrs(nir_function_impl *impl)
|
|||
return index;
|
||||
}
|
||||
|
||||
void
|
||||
nir_shader_clear_pass_flags(nir_shader *shader)
|
||||
{
|
||||
nir_foreach_function_impl(impl, shader) {
|
||||
nir_foreach_block(block, impl) {
|
||||
nir_foreach_instr(instr, block) {
|
||||
instr->pass_flags = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
unsigned
|
||||
nir_shader_index_vars(nir_shader *shader, nir_variable_mode modes)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4647,6 +4647,8 @@ unsigned nir_index_instrs(nir_function_impl *impl);
|
|||
|
||||
void nir_index_blocks(nir_function_impl *impl);
|
||||
|
||||
void nir_shader_clear_pass_flags(nir_shader *shader);
|
||||
|
||||
unsigned nir_shader_index_vars(nir_shader *shader, nir_variable_mode modes);
|
||||
unsigned nir_function_impl_index_vars(nir_function_impl *impl);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue