mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
nir: print in_bounds info for deref_type(_ptr_as)_array
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:
parent
0a6d698482
commit
32b646c597
1 changed files with 6 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue