disassemble_midgard(program->compiled.data, program->compiled.size);
if (midgard_debug & MIDGARD_DBG_SHADERDB) {
- unsigned nr_bundles = 0, nr_ins = 0;
+ unsigned nr_bundles = 0, nr_ins = 0, nr_quadwords = 0;
/* Count instructions and bundles */
mir_foreach_block(ctx, block) {
nr_bundles += util_dynarray_num_elements(
&block->bundles, midgard_bundle);
+
+ nr_quadwords += block->quadword_count;
}
/* Calculate thread count. There are certain cutoffs by
/* Dump stats */
fprintf(stderr, "shader%d - %s shader: "
- "%u inst, %u bundles, "
+ "%u inst, %u bundles, %u quadwords, "
"%u registers, %u threads, %u loops\n",
SHADER_DB_COUNT++,
gl_shader_stage_name(ctx->stage),
- nr_ins, nr_bundles,
+ nr_ins, nr_bundles, nr_quadwords,
nr_registers, nr_threads,
ctx->loop_count);
}