diff options
author | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-07-03 12:10:43 -0700 |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-07-08 10:05:56 -0700 |
commit | 2614319259e5c865606fb4f917c439e76196631f (patch) | |
tree | 022b2c8268db1a8cf6afa6703e0d164fb68d0d7f /src/compiler/nir/nir_print.c | |
parent | 9c7adaeb5fac46f437c7b2106b977e2f97df7452 (diff) |
nir: print ptr_stride for deref_casts
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_print.c')
-rw-r--r-- | src/compiler/nir/nir_print.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 * |