nir: print ptr_stride for deref_casts
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 3 Jul 2019 19:10:43 +0000 (12:10 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Mon, 8 Jul 2019 17:05:56 +0000 (10:05 -0700)
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/compiler/nir/nir_print.c

index f95b3c9262034bd4bb88842d34977b699fc9a673..5a626c66960c9470bd9b60bc304274dad17b487b 100644 (file)
@@ -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 *