<div dir="ltr"><div>Fine by me<br></div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason.ekstrand@intel.com">jason.ekstrand@intel.com</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 5, 2015 at 8:26 PM, Kenneth Graunke <span dir="ltr"><<a href="mailto:kenneth@whitecape.org" target="_blank">kenneth@whitecape.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Being able to see both location and driver_location can be useful when<br>
debugging IO mistakes.<br>
<br>
Signed-off-by: Kenneth Graunke <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>><br>
---<br>
src/glsl/nir/nir_print.c | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/glsl/nir/nir_print.c b/src/glsl/nir/nir_print.c<br>
index 6a3c6a0..30d4821 100644<br>
--- a/src/glsl/nir/nir_print.c<br>
+++ b/src/glsl/nir/nir_print.c<br>
@@ -228,7 +228,7 @@ print_var_decl(nir_variable *var, print_var_state *state, FILE *fp)<br>
if (var->data.mode == nir_var_shader_in ||<br>
var->data.mode == nir_var_shader_out ||<br>
var->data.mode == nir_var_uniform) {<br>
- fprintf(fp, " (%u)", var->data.driver_location);<br>
+ fprintf(fp, " (%u, %u)", var->data.location, var->data.driver_location);<br>
}<br>
<br>
fprintf(fp, "\n");<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.2.2<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="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>