nir: print var binding in dumps.
authorDave Airlie <airlied@redhat.com>
Wed, 23 Nov 2016 22:25:50 +0000 (22:25 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 29 Nov 2016 22:07:13 +0000 (22:07 +0000)
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>
src/compiler/nir/nir_print.c

index ed0243506d5550c5414e2bc05da8cc129d302f22..a5b29093c5bd87d23796d1eaaf9901e016ed8c82 100644 (file)
@@ -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" : "");
    }