From: Caio Marcelo de Oliveira Filho Date: Wed, 3 Jul 2019 19:10:43 +0000 (-0700) Subject: nir: print ptr_stride for deref_casts X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2614319259e5c865606fb4f917c439e76196631f;p=mesa.git nir: print ptr_stride for deref_casts Reviewed-by: Dave Airlie --- 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 *