<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 7, 2016 at 12:46 AM, Samuel Iglesias Gonsálvez <span dir="ltr"><<a href="mailto:siglesias@igalia.com" target="_blank">siglesias@igalia.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:connor.w.abbott@intel.com">connor.w.abbott@intel.com</a>><br>
<br>
---<br>
 src/compiler/nir/nir.h | 9 +++++++++<br>
 1 file changed, 9 insertions(+)<br>
<br>
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h<br>
index 39aad02..c7e4dcc 100644<br>
--- a/src/compiler/nir/nir.h<br>
+++ b/src/compiler/nir/nir.h<br>
@@ -566,6 +566,15 @@ nir_src_bit_size(nir_src src)<br>
    return src.reg.reg->bit_size;<br>
 }<br>
<br>
+static inline unsigned<br>
+nir_dest_bit_size(nir_dest dest)<br>
+{<br>
+   if (dest.is_ssa)<br>
+      return dest.ssa.bit_size;<br>
+<br>
+   return dest.reg.reg->bit_size;<br>
+}<br></blockquote><div><br></div><div>Same comment as for sources.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+<br>
 void nir_src_copy(nir_src *dest, const nir_src *src, void *instr_or_if);<br>
 void nir_dest_copy(nir_dest *dest, const nir_dest *src, nir_instr *instr);<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.7.0<br>
<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" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div></div>