diff options
author | Eric Anholt <[email protected]> | 2018-02-04 21:27:32 +0000 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-02-05 09:29:37 +0000 |
commit | f3978a7380efa61ddfc2f1d6860dbd8cf881ce14 (patch) | |
tree | d1cf6bb1723b9c6d7640940b21e3dacfe250c13d /src/broadcom/compiler | |
parent | 7801425028a3261ba091603763b515959e73815f (diff) |
broadcom/vc5: Add missing shader-db instruction counting.
I must have misplaced it in the instruction packing rework.
Diffstat (limited to 'src/broadcom/compiler')
-rw-r--r-- | src/broadcom/compiler/vir_to_qpu.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/broadcom/compiler/vir_to_qpu.c b/src/broadcom/compiler/vir_to_qpu.c index 432f156218c..11a7ef91031 100644 --- a/src/broadcom/compiler/vir_to_qpu.c +++ b/src/broadcom/compiler/vir_to_qpu.c @@ -334,6 +334,13 @@ v3d_vir_to_qpu(struct v3d_compile *c, struct qpu_reg *temp_registers) assert(i == c->qpu_inst_count); if (V3D_DEBUG & V3D_DEBUG_SHADERDB) { + fprintf(stderr, "SHADER-DB: %s prog %d/%d: %d instructions\n", + vir_get_stage_name(c), + c->program_id, c->variant_id, + c->qpu_inst_count); + } + + if (V3D_DEBUG & V3D_DEBUG_SHADERDB) { fprintf(stderr, "SHADER-DB: %s prog %d/%d: %d estimated cycles\n", vir_get_stage_name(c), c->program_id, c->variant_id, |