summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2019-06-26 13:41:20 +0200
committerConnor Abbott <[email protected]>2019-07-29 11:36:19 +0200
commitc6543efe7a151d38854686b15b8d4412697d1794 (patch)
treee14591199cda4bccb009eb2fc1309a077d3d41df /src/compiler
parent6fc7384fd44f0b42c6decac4468bba06b28a8186 (diff)
nir: Print array deref indices as decimal
We print the size as decimal too, and using hex without a leading "0x" was very confusing. Reviewed-by: Jason Ekstrand <[email protected]>
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 9633cb37ac7..4e144c1c955 100644
--- a/src/compiler/nir/nir_print.c
+++ b/src/compiler/nir/nir_print.c
@@ -653,7 +653,7 @@ print_deref_link(const nir_deref_instr *instr, bool whole_chain, print_state *st
case nir_deref_type_array:
case nir_deref_type_ptr_as_array: {
if (nir_src_is_const(instr->arr.index)) {
- fprintf(fp, "[%"PRIx64"]", nir_src_as_int(instr->arr.index));
+ fprintf(fp, "[%"PRId64"]", nir_src_as_int(instr->arr.index));
} else {
fprintf(fp, "[");
print_src(&instr->arr.index, state);