From: Dave Airlie Date: Wed, 23 Nov 2016 22:25:50 +0000 (+0000) Subject: nir: print var binding in dumps. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6a62026dd46a267eb861bcdf8a7db449745aa32e;p=mesa.git nir: print var binding in dumps. This only useful for spir-v shaders, but I keep finding myself having to add it. Reviewed-by: Kenneth Graunke Signed-off-by: Dave Airlie --- diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c index ed0243506d5..a5b29093c5b 100644 --- a/src/compiler/nir/nir_print.c +++ b/src/compiler/nir/nir_print.c @@ -432,7 +432,7 @@ print_var_decl(nir_variable *var, print_state *state) loc = buf; } - fprintf(fp, " (%s, %u)%s", loc, var->data.driver_location, + fprintf(fp, " (%s, %u, %u)%s", loc, var->data.driver_location, var->data.binding, var->data.compact ? " compact" : ""); }