diff options
author | Jason Ekstrand <[email protected]> | 2014-12-12 16:22:46 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-15 07:20:21 -0800 |
commit | b6c81b3ff453d51898f86a819f80ea1128aea0fe (patch) | |
tree | 39d54cdc238d5eecb69f572fe52ef894a9c7244e /src/glsl/nir/nir.c | |
parent | 3c2c0a164c2308a5777d7a59b6da4b44a57ba6e2 (diff) |
nir/metadata: Rename metadata_dirty to metadata_preserve
nir_metadata_dirty was a terrible name because the parameter it takes is
the metadata to be preserved. This is really confusing because it looks
like it's doing the opposite of what it is actually doing. Now it's named
sensibly.
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir.c')
-rw-r--r-- | src/glsl/nir/nir.c | 10 |
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) { /* |