<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 12, 2016 at 1:05 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_builder.h | 7 +++++++<br>
1 file changed, 7 insertions(+)<br>
<br>
diff --git a/src/compiler/nir/nir_builder.h b/src/compiler/nir/nir_builder.h<br>
index 29b13fb..38a1cf7 100644<br>
--- a/src/compiler/nir/nir_builder.h<br>
+++ b/src/compiler/nir/nir_builder.h<br>
@@ -154,6 +154,13 @@ nir_imm_ivec4(nir_builder *build, int x, int y, int z, int w)<br>
}<br>
<br>
static inline nir_ssa_def *<br>
+nir_imm_uint(nir_builder *build, unsigned x)<br>
+{<br>
+ nir_const_value v = { { .u32 = {x, 0, 0, 0} } };<br>
+ return nir_build_imm(build, 1, v);<br>
+}<br></blockquote><div><br></div><div>I don't really mind this being a thing, but it's not really needed. nir_imm_int is exactly the same thing.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+<br>
+static inline nir_ssa_def *<br>
nir_build_alu(nir_builder *build, nir_op op, nir_ssa_def *src0,<br>
nir_ssa_def *src1, nir_ssa_def *src2, nir_ssa_def *src3)<br>
{<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.5.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>