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:
Eric Anholt
2020-09-08 12:50:34 -07:00
committed by Marge Bot
parent 6c1c571440
commit c88c89ff3e

View File

@@ -736,7 +736,9 @@ print_deref_instr(nir_deref_instr *instr, print_state *state)
} }
if (instr->deref_type == nir_deref_type_cast) { 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);
} }
} }