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:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user