aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2020-03-04 10:51:10 -0800
committerMarge Bot <[email protected]>2020-03-10 16:01:39 +0000
commit752b9985bed171a39bb439421d0e2cd8d0ab82aa (patch)
treeb7743907be8ad1cbae4994de6ebfb2057568ac7b /src/gallium/drivers
parent64ae2ef8bbc63750346345e331750f0e0c643103 (diff)
freedreno/ir3: add simplified stall estimation
Doesn't take into account stalls that result from a register written in a different block, etc. But this should be more useful than just using number of (ss)'s by trying to estimate how costly a given sync is. Signed-off-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4071>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3_gallium.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_gallium.c b/src/gallium/drivers/freedreno/ir3/ir3_gallium.c
index 5a47376c14e..9ad67d2ec9b 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_gallium.c
+++ b/src/gallium/drivers/freedreno/ir3/ir3_gallium.c
@@ -53,7 +53,7 @@ dump_shader_info(struct ir3_shader_variant *v, bool binning_pass,
pipe_debug_message(debug, SHADER_INFO,
"%s shader: %u inst, %u nops, %u non-nops, %u dwords, "
"%u last-baryf, %u half, %u full, %u constlen, "
- "%u (ss), %u (sy), %d max_sun, %d loops\n",
+ "%u sstall, %u (ss), %u (sy), %d max_sun, %d loops\n",
ir3_shader_stage(v),
v->info.instrs_count,
v->info.nops_count,
@@ -63,6 +63,7 @@ dump_shader_info(struct ir3_shader_variant *v, bool binning_pass,
v->info.max_half_reg + 1,
v->info.max_reg + 1,
v->constlen,
+ v->info.sstall,
v->info.ss, v->info.sy,
v->max_sun, v->loops);
}