<div dir="ltr">The commit message says fadd twice.<br><div><br><div class="gmail_quote"><div dir="ltr">On Wed, Dec 19, 2018 at 5:51 AM Iago Toral Quiroga <<a href="mailto:itoral@igalia.com">itoral@igalia.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">---<br>
src/compiler/nir/nir_builder.h | 12 ++++++++++++<br>
1 file changed, 12 insertions(+)<br>
<br>
diff --git a/src/compiler/nir/nir_builder.h b/src/compiler/nir/nir_builder.h<br>
index 74ecde798d5..14f3baab20b 100644<br>
--- a/src/compiler/nir/nir_builder.h<br>
+++ b/src/compiler/nir/nir_builder.h<br>
@@ -571,6 +571,18 @@ nir_imul_imm(nir_builder *build, nir_ssa_def *x, uint64_t y)<br>
return nir_imul(build, x, nir_imm_intN_t(build, y, x->bit_size));<br>
}<br>
<br>
+static inline nir_ssa_def *<br>
+nir_fadd_imm(nir_builder *build, nir_ssa_def *x, double y)<br>
+{<br>
+ return nir_fadd(build, x, nir_imm_floatN_t(build, y, x->bit_size));<br>
+}<br>
+<br>
+static inline nir_ssa_def *<br>
+nir_fmul_imm(nir_builder *build, nir_ssa_def *x, double y)<br>
+{<br>
+ return nir_fmul(build, x, nir_imm_floatN_t(build, y, x->bit_size));<br>
+}<br>
+<br>
static inline nir_ssa_def *<br>
nir_pack_bits(nir_builder *b, nir_ssa_def *src, unsigned dest_bit_size)<br>
{<br>
-- <br>
2.17.1<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">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>
</blockquote></div></div></div>