diff options
author | Eric Anholt <[email protected]> | 2019-05-14 16:02:17 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2019-05-16 10:25:20 -0700 |
commit | c2e68bebb49c0d0bf59372b5480575b4d7bbcac4 (patch) | |
tree | 9fdb211779cee7916598c781ff45124a757498ea /src/gallium | |
parent | 6d9b45171d78b0f4a22324a77431679263b35ad8 (diff) |
freedreno: Output the same shader-db format as v3d and intel.
This lets us reuse their report.py, at the expense of fd-report.py no
longer working.
Reviewed-by: Rob Clark <[email protected]>
Tested-by: Eduardo Lima Mitev <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3_gallium.c | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_gallium.c b/src/gallium/drivers/freedreno/ir3/ir3_gallium.c index 98db2bfa75c..c189a90dc16 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_gallium.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_gallium.c @@ -49,29 +49,18 @@ dump_shader_info(struct ir3_shader_variant *v, struct pipe_debug_callback *debug if (!unlikely(fd_mesa_debug & FD_DBG_SHADERDB)) return; - pipe_debug_message(debug, SHADER_INFO, "\n" - "SHADER-DB: %s prog %d/%d: %u instructions, %u dwords\n" - "SHADER-DB: %s prog %d/%d: %u half, %u full\n" - "SHADER-DB: %s prog %d/%d: %u const, %u constlen\n" - "SHADER-DB: %s prog %d/%d: %u (ss), %u (sy)\n" - "SHADER-DB: %s prog %d/%d: max_sun=%u\n", + pipe_debug_message(debug, SHADER_INFO, + "%s shader: %u inst, %u dwords, " + "%u half, %u full, %u const, %u constlen, " + "%u (ss), %u (sy), %d max_sun\n", ir3_shader_stage(v->shader), - v->shader->id, v->id, v->info.instrs_count, v->info.sizedwords, - ir3_shader_stage(v->shader), - v->shader->id, v->id, v->info.max_half_reg + 1, v->info.max_reg + 1, - ir3_shader_stage(v->shader), - v->shader->id, v->id, v->info.max_const + 1, v->constlen, - ir3_shader_stage(v->shader), - v->shader->id, v->id, v->info.ss, v->info.sy, - ir3_shader_stage(v->shader), - v->shader->id, v->id, v->max_sun); } |