Module: Mesa Branch: master Commit: 2614319259e5c865606fb4f917c439e76196631f URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2614319259e5c865606fb4f917c439e76196631f
Author: Caio Marcelo de Oliveira Filho <[email protected]> Date: Wed Jul 3 12:10:43 2019 -0700 nir: print ptr_stride for deref_casts Reviewed-by: Dave Airlie <[email protected]> --- src/compiler/nir/nir_print.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c index f95b3c92620..5a626c66960 100644 --- a/src/compiler/nir/nir_print.c +++ b/src/compiler/nir/nir_print.c @@ -716,6 +716,10 @@ print_deref_instr(nir_deref_instr *instr, print_state *state) print_deref_link(instr, true, state); fprintf(fp, " */"); } + + if (instr->deref_type == nir_deref_type_cast) { + fprintf(fp, " /* ptr_stride=%u */", instr->cast.ptr_stride); + } } static const char * _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
