<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 21, 2016 at 5: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_print.c | 5 ++++-<br>
 1 file changed, 4 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c<br>
index 30a8233..0b3f954 100644<br>
--- a/src/compiler/nir/nir_print.c<br>
+++ b/src/compiler/nir/nir_print.c<br>
@@ -719,7 +719,10 @@ print_load_const_instr(nir_load_const_instr *instr, print_state *state)<br>
        * and then print the float in a comment for readability.<br>
        */<br>
<br>
-      fprintf(fp, "0x%08x /* %f */", instr->value.u32[i], instr->value.f32[i]);<br>
+      if (instr->def.bit_size == 64)<br>
+         fprintf(fp, "%f", instr->value.f64[i]);<br></blockquote><div><br></div><div>Let's print out the 64-bit integer here as well.  64-bit integer support may happen.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+      else<br>
+         fprintf(fp, "0x%08x /* %f */", instr->value.u32[i], instr->value.f32[i]);<br>
    }<br>
<br>
    fprintf(fp, ")");<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>