Mesa (master): nir: print var binding in dumps.

Dave Airlie airlied at kemper.freedesktop.org
Tue Nov 29 22:07:33 UTC 2016


Module: Mesa
Branch: master
Commit: 6a62026dd46a267eb861bcdf8a7db449745aa32e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6a62026dd46a267eb861bcdf8a7db449745aa32e

Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Nov 23 22:25:50 2016 +0000

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 at whitecape.org>
Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/compiler/nir/nir_print.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c
index ed02435..a5b2909 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" : "");
    }
 




More information about the mesa-commit mailing list