diff options
author | Dave Airlie <[email protected]> | 2016-11-23 22:25:50 +0000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-11-29 22:07:13 +0000 |
commit | 6a62026dd46a267eb861bcdf8a7db449745aa32e (patch) | |
tree | aed4ad63de915bc317370a6b8f1c5213c62ed3af /src/compiler | |
parent | fae5e1dc748d1b481a663c4efb5ad939f2b45535 (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 <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/nir/nir_print.c | 2 |
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" : ""); } |