mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 22:20:14 +01:00
nir: Print the alignment information on casts.
I wanted it for debugging GL alignment. Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6612>
This commit is contained in:
parent
6c1c571440
commit
c88c89ff3e
1 changed files with 3 additions and 1 deletions
|
|
@ -736,7 +736,9 @@ print_deref_instr(nir_deref_instr *instr, print_state *state)
|
|||
}
|
||||
|
||||
if (instr->deref_type == nir_deref_type_cast) {
|
||||
fprintf(fp, " /* ptr_stride=%u */", instr->cast.ptr_stride);
|
||||
fprintf(fp, " /* ptr_stride=%u, align_mul=%u, align_offset=%u */",
|
||||
instr->cast.ptr_stride,
|
||||
instr->cast.align_mul, instr->cast.align_offset);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue