summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-11-23 22:25:50 +0000
committerDave Airlie <airlied@redhat.com>2016-11-29 22:07:13 +0000
commit6a62026dd46a267eb861bcdf8a7db449745aa32e (patch)
treeaed4ad63de915bc317370a6b8f1c5213c62ed3af /src/compiler
parentfae5e1dc748d1b481a663c4efb5ad939f2b45535 (diff)
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 <kenneth@whitecape.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/nir/nir_print.c2
1 files changed, 1 insertions, 1 deletions
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" : "");
}