<p dir="ltr"></p>
<p dir="ltr">On Aug 29, 2016 12:06 PM, "Matt Turner" <<a href="mailto:mattst88@gmail.com">mattst88@gmail.com</a>> wrote:<br>
><br>
> On Sun, Aug 28, 2016 at 7:13 PM, Timothy Arceri<br>
> <<a href="mailto:timothy.arceri@collabora.com">timothy.arceri@collabora.com</a>> wrote:<br>
> > Fixes uninitialised warning for coord_components.<br>
> > ---<br>
> > src/compiler/spirv/spirv_to_nir.c | 2 +-<br>
> > 1 file changed, 1 insertion(+), 1 deletion(-)<br>
> ><br>
> > diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c<br>
> > index ca404d8..fda38f9 100644<br>
> > --- a/src/compiler/spirv/spirv_to_nir.c<br>
> > +++ b/src/compiler/spirv/spirv_to_nir.c<br>
> > @@ -1426,7 +1426,7 @@ vtn_handle_texture(struct vtn_builder *b, SpvOp opcode,<br>
> > coord_components = 3;<br>
> > break;<br>
> > default:<br>
> > - assert("Invalid sampler type");<br>
> > + unreachable("Invalid sampler type");<br>
><br>
> Not only does it fix an uninitialized warning, the assert was *wrong*.<br>
> It's missing the ! so it would have always been true!</p>
<p dir="ltr">Drp... Rb</p>
<p dir="ltr">> Reviewed-by: Matt Turner <<a href="mailto:mattst88@gmail.com">mattst88@gmail.com</a>><br>
> _______________________________________________<br>
> mesa-dev mailing list<br>
> <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br></p>