[Mesa-dev] [PATCH 01/13] nir/validate: Validate SSA def parent instructiosn

Connor Abbott cwabbott0 at gmail.com
Tue May 5 17:16:23 PDT 2015


Typo in the subject line.

On Tue, Apr 28, 2015 at 12:03 AM, Jason Ekstrand <jason at jlekstrand.net> wrote:
> ---
>  src/glsl/nir/nir_validate.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/glsl/nir/nir_validate.c b/src/glsl/nir/nir_validate.c
> index a7aa798..35a853d 100644
> --- a/src/glsl/nir/nir_validate.c
> +++ b/src/glsl/nir/nir_validate.c
> @@ -236,6 +236,8 @@ validate_ssa_def(nir_ssa_def *def, validate_state *state)
>     assert(!BITSET_TEST(state->ssa_defs_found, def->index));
>     BITSET_SET(state->ssa_defs_found, def->index);
>
> +   assert(def->parent_instr == state->instr);
> +
>     assert(def->num_components <= 4);
>
>     ssa_def_validate_state *def_state = ralloc(state->ssa_defs,
> --
> 2.3.6
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list