From 2614319259e5c865606fb4f917c439e76196631f Mon Sep 17 00:00:00 2001 From: Caio Marcelo de Oliveira Filho Date: Wed, 3 Jul 2019 12:10:43 -0700 Subject: [PATCH] nir: print ptr_stride for deref_casts Reviewed-by: Dave Airlie --- 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 * -- 2.30.2