nir: fix NIR_DEBUG=validate_ssa_dominance
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 5 Oct 2022 10:08:56 +0000 (13:08 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 14 Oct 2022 07:36:56 +0000 (10:36 +0300)
commiteec49374b06fdf18a93c691642ee93c6b04612a8
treeedc7148157d97558233bef6bd32e91832da94d13
parent44ccaca41d41e5dfa660f7c2fb6e50aa2ff03e22
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>
src/compiler/nir/nir_validate.c