nir: print in_bounds info for deref_type(_ptr_as)_array
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Signed-off-by: Job Noorman <jnoorman@igalia.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38110>
This commit is contained in:
Job Noorman 2025-10-28 14:35:38 +01:00 committed by Marge Bot
parent 0a6d698482
commit 32b646c597

View file

@ -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 */