summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/nir/nir.c')
-rw-r--r--src/glsl/nir/nir.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/glsl/nir/nir.c b/src/glsl/nir/nir.c
index 3a64135d94e..cb788d47259 100644
--- a/src/glsl/nir/nir.c
+++ b/src/glsl/nir/nir.c
@@ -862,7 +862,7 @@ handle_jump(nir_block *block)
unlink_block_successors(block);
nir_function_impl *impl = nir_cf_node_get_function(&block->cf_node);
- nir_metadata_dirty(impl, nir_metadata_none);
+ nir_metadata_preserve(impl, nir_metadata_none);
if (jump_instr->type == nir_jump_break ||
jump_instr->type == nir_jump_continue) {
@@ -960,7 +960,7 @@ handle_remove_jump(nir_block *block, nir_jump_type type)
}
nir_function_impl *impl = nir_cf_node_get_function(&block->cf_node);
- nir_metadata_dirty(impl, nir_metadata_none);
+ nir_metadata_preserve(impl, nir_metadata_none);
}
/**
@@ -1066,7 +1066,7 @@ nir_cf_node_insert_after(nir_cf_node *node, nir_cf_node *after)
}
nir_function_impl *impl = nir_cf_node_get_function(node);
- nir_metadata_dirty(impl, nir_metadata_none);
+ nir_metadata_preserve(impl, nir_metadata_none);
}
void
@@ -1108,7 +1108,7 @@ nir_cf_node_insert_before(nir_cf_node *node, nir_cf_node *before)
}
nir_function_impl *impl = nir_cf_node_get_function(node);
- nir_metadata_dirty(impl, nir_metadata_none);
+ nir_metadata_preserve(impl, nir_metadata_none);
}
void
@@ -1154,7 +1154,7 @@ void
nir_cf_node_remove(nir_cf_node *node)
{
nir_function_impl *impl = nir_cf_node_get_function(node);
- nir_metadata_dirty(impl, nir_metadata_none);
+ nir_metadata_preserve(impl, nir_metadata_none);
if (node->type == nir_cf_node_block) {
/*