[Mesa-dev] [PATCH 046/133] nir: Add an assert

Jason Ekstrand jason at jlekstrand.net
Wed Dec 17 13:09:48 PST 2014


Sure, I can try and remember to do that.

On Wed, Dec 17, 2014 at 11:33 AM, Connor Abbott <cwabbott0 at gmail.com> wrote:
>
> Sorry to ask, but... this one is so trivial and touches code that no
> earlier patch touches, why don't we just squash it into the commit
> that adds nir.c?
>
> On Tue, Dec 16, 2014 at 1:04 AM, Jason Ekstrand <jason at jlekstrand.net>
> wrote:
> > ---
> >  src/glsl/nir/nir.c | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/src/glsl/nir/nir.c b/src/glsl/nir/nir.c
> > index 0124799..3c897b2 100644
> > --- a/src/glsl/nir/nir.c
> > +++ b/src/glsl/nir/nir.c
> > @@ -840,6 +840,7 @@ handle_jump(nir_block *block)
> >              unlink_blocks(last_block, after_block);
> >        }
> >     } else {
> > +      assert(jump_instr->type == nir_jump_return);
> >        link_blocks(block, impl->end_block, NULL);
> >     }
> >  }
> > --
> > 2.2.0
> >
> > _______________________________________________
> > mesa-dev mailing list
> > mesa-dev at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20141217/25c9399f/attachment.html>


More information about the mesa-dev mailing list