diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c index 4a0ff2c0c32..d5745a1f709 100644 --- a/src/compiler/nir/nir_print.c +++ b/src/compiler/nir/nir_print.c @@ -1133,6 +1133,12 @@ print_deref_instr(nir_deref_instr *instr, print_state *state) instr->cast.align_mul, instr->cast.align_offset); } + if (instr->deref_type == nir_deref_type_array || + instr->deref_type == nir_deref_type_ptr_as_array) { + if (instr->arr.in_bounds) + fprintf(fp, " (in bounds)"); + } + if (instr->deref_type != nir_deref_type_var && instr->deref_type != nir_deref_type_cast) { /* Print the entire chain as a comment */