<p dir="ltr">Seems reasonable. R-B</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Aug 21, 2016 1:32 AM, "Timothy Arceri" <<a href="mailto:timothy.arceri@collabora.com">timothy.arceri@collabora.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Without this the following line will segfault and we don't get to<br>
see the results of the validate_assert() above.<br>
---<br>
src/compiler/nir/nir_validate.<wbr>c | 3 +++<br>
1 file changed, 3 insertions(+)<br>
<br>
diff --git a/src/compiler/nir/nir_<wbr>validate.c b/src/compiler/nir/nir_<wbr>validate.c<br>
index d9801b5..9d1566c 100644<br>
--- a/src/compiler/nir/nir_<wbr>validate.c<br>
+++ b/src/compiler/nir/nir_<wbr>validate.c<br>
@@ -173,6 +173,9 @@ validate_ssa_src(nir_src *src, validate_state *state)<br>
<br>
validate_assert(state, entry);<br>
<br>
+ if (!entry)<br>
+ return;<br>
+<br>
ssa_def_validate_state *def_state = (ssa_def_validate_state *)entry->data;<br>
<br>
validate_assert(state, def_state->where_defined == state->impl &&<br>
--<br>
2.7.4<br>
<br>
______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</blockquote></div></div>