summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_print.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2016-01-21 14:12:58 -0500
committerRob Clark <[email protected]>2016-02-09 17:30:33 -0500
commitced8d3e7730777ea8a264d22f83b43f7b3a5c433 (patch)
tree75eab31bc4fe51d7d4c68bdf1ae21c198925cfb9 /src/compiler/nir/nir_print.c
parent6921762de6490fb7fa791e3fa6aff9f9f27bf40f (diff)
nir: use const_index helpers
Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_print.c')
-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 101688eb00f..4ec32cf48da 100644
--- a/src/compiler/nir/nir_print.c
+++ b/src/compiler/nir/nir_print.c
@@ -530,7 +530,7 @@ print_intrinsic_instr(nir_intrinsic_instr *instr, print_state *state)
}
nir_foreach_variable(var, var_list) {
- if ((var->data.driver_location == instr->const_index[0]) &&
+ if ((var->data.driver_location == nir_intrinsic_base(instr)) &&
var->name) {
fprintf(fp, "\t/* %s */", var->name);
break;