<div dir="ltr"><div>Yeah, something like this would be good.  I don't like how the syntax clashes with casts though.  I'll think on it. :-)<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 7, 2018 at 9:13 AM, Rob Clark <span dir="ltr"><<a href="mailto:robdclark@gmail.com" target="_blank">robdclark@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It was only shown in deref_cast instructions.  But it makes things<br>
easier to follow to show the intermediate types in deref_array/<br>
deref_struct instructions too.<br>
<br>
Signed-off-by: Rob Clark <<a href="mailto:robdclark@gmail.com">robdclark@gmail.com</a>><br>
---<br>
 src/compiler/nir/nir_print.c | 5 +++--<br>
 1 file changed, 3 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c<br>
index 7d7542a4113..5cec6a49963 100644<br>
--- a/src/compiler/nir/nir_print.c<br>
+++ b/src/compiler/nir/nir_print.c<br>
@@ -504,9 +504,10 @@ print_deref_instr(nir_deref_<wbr>instr *instr, print_state *state)<br>
       return;<br>
    }<br>
<br>
-   fprintf(fp, " = deref_%s (%s) &",<br>
+   fprintf(fp, " = deref_%s (%s) (%s *)&",<br>
           (instr->deref_type == nir_deref_type_struct) ? "struct" : "array",<br>
-          get_variable_mode_str(instr-><wbr>mode));<br>
+          get_variable_mode_str(instr-><wbr>mode),<br>
+          glsl_get_type_name(instr-><wbr>type));<br>
    print_src(&instr->parent, state);<br>
<br>
    assert(instr->parent.is_ssa);<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.14.3<br>
<br>
</font></span></blockquote></div><br></div>