mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
nir: fix NIR_DEBUG=validate_ssa_dominance
validate_ssa_def_dominance() asserts : validate_assert(state, !BITSET_TEST(state->ssa_defs_found, def->index)); Because the previous validation lefts bits set when it processed the IR. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18966>
This commit is contained in:
parent
44ccaca41d
commit
eec49374b0
1 changed files with 4 additions and 1 deletions
|
|
@ -1694,8 +1694,11 @@ validate_function_impl(nir_function_impl *impl, validate_state *state)
|
|||
validate_dominance =
|
||||
NIR_DEBUG(VALIDATE_SSA_DOMINANCE);
|
||||
}
|
||||
if (validate_dominance)
|
||||
if (validate_dominance) {
|
||||
memset(state->ssa_defs_found, 0, BITSET_WORDS(impl->ssa_alloc) *
|
||||
sizeof(BITSET_WORD));
|
||||
validate_ssa_dominance(impl, state);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue