<div dir="ltr">Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 6, 2017 at 12:48 PM, Connor Abbott <span dir="ltr"><<a href="mailto:connora@valvesoftware.com" target="_blank">connora@valvesoftware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Connor Abbott <<a href="mailto:cwabbott0@gmail.com">cwabbott0@gmail.com</a>><br>
<br>
The compact flag doesn't make sense on local variables, since the<br>
packing on them is up to the driver. This fixes nir_validate assertions<br>
in some cases, particularly when lower_io_to_temporaries is used on<br>
per-vertex inputs/outputs.<br>
---<br>
 src/compiler/nir/nir_lower_io_<wbr>to_temporaries.c | 1 +<br>
 1 file changed, 1 insertion(+)<br>
<br>
diff --git a/src/compiler/nir/nir_lower_<wbr>io_to_temporaries.c b/src/compiler/nir/nir_lower_<wbr>io_to_temporaries.c<br>
index 6031bbd..d2df14e 100644<br>
--- a/src/compiler/nir/nir_lower_<wbr>io_to_temporaries.c<br>
+++ b/src/compiler/nir/nir_lower_<wbr>io_to_temporaries.c<br>
@@ -141,6 +141,7 @@ create_shadow_temp(struct lower_io_state *state, nir_variable *var)<br>
    temp->data.mode = nir_var_global;<br>
    temp->data.read_only = false;<br>
    temp->data.fb_fetch_output = false;<br>
+   temp->data.compact = false;<br>
<br>
    return nvar;<br>
 }<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.9.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>
</font></span></blockquote></div><br></div>