diff options
author | Jason Ekstrand <[email protected]> | 2014-10-29 12:42:54 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-15 07:19:00 -0800 |
commit | 49911cf4dbf85e9c20c8069cbc0aaa6deb757df1 (patch) | |
tree | 6a061dd0cb6d2bd3aeb23ec05161b2d0c8eec010 /src/glsl/nir/nir_dominance.c | |
parent | ea1eefe13f2390981e37c22fd3791a042ef5f3e0 (diff) |
nir: Add a basic metadata management system
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir_dominance.c')
-rw-r--r-- | src/glsl/nir/nir_dominance.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/glsl/nir/nir_dominance.c b/src/glsl/nir/nir_dominance.c index 988a3fc7450..76847847d64 100644 --- a/src/glsl/nir/nir_dominance.c +++ b/src/glsl/nir/nir_dominance.c @@ -181,10 +181,10 @@ calc_dom_children(nir_function_impl* impl) void nir_calc_dominance_impl(nir_function_impl *impl) { - if (!impl->dominance_dirty) + if (impl->valid_metadata & nir_metadata_dominance) return; - nir_index_blocks(impl); + nir_metadata_require(impl, nir_metadata_block_index); dom_state state; state.impl = impl; @@ -202,8 +202,6 @@ nir_calc_dominance_impl(nir_function_impl *impl) impl->start_block->imm_dom = NULL; calc_dom_children(impl); - - impl->dominance_dirty = false; } void |