diff options
author | Eric Anholt <[email protected]> | 2019-05-14 16:24:33 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2019-05-16 10:25:22 -0700 |
commit | ef88e23d0335c05ebc60a621ee91cd6b22208597 (patch) | |
tree | 9b70d97c7c3d5d83ee9e8af6e09f207a70428ade /src/gallium/drivers | |
parent | c2e68bebb49c0d0bf59372b5480575b4d7bbcac4 (diff) |
freedreno: Log the number of loops in the shader for shader-db.
shader-db's report.py will use this to see when we've changed loop
unrolling behavior on a shader and skip including other stats like
instruction count from being considered for that shader, since they won't
be useful as a proxy for real world performance in that case.
Reviewed-by: Rob Clark <[email protected]>
Tested-by: Eduardo Lima Mitev <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3_gallium.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_gallium.c b/src/gallium/drivers/freedreno/ir3/ir3_gallium.c index c189a90dc16..9fd84899b36 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_gallium.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_gallium.c @@ -52,7 +52,7 @@ dump_shader_info(struct ir3_shader_variant *v, struct pipe_debug_callback *debug 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", + "%u (ss), %u (sy), %d max_sun, %d loops\n", ir3_shader_stage(v->shader), v->info.instrs_count, v->info.sizedwords, @@ -61,7 +61,7 @@ dump_shader_info(struct ir3_shader_variant *v, struct pipe_debug_callback *debug v->info.max_const + 1, v->constlen, v->info.ss, v->info.sy, - v->max_sun); + v->max_sun, v->loops); } struct ir3_shader_variant * |