mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-22 03:10:41 +02:00
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 <jason@jlekstrand.net>
This commit is contained in:
parent
6fc7384fd4
commit
c6543efe7a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue