summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2015-04-13 12:56:37 +0000
committerTom Stellard <[email protected]>2015-04-14 13:36:59 +0000
commit2569c7109d466137ac2b9964db3427ccf2bbf49e (patch)
tree8f7b91837acead2367a67580e3c33bba97cf067b
parent406df68736a213f17f21a38a7c2da4ea15acd053 (diff)
radeonsi: Add header and footer to shader stat dump
This makes it easier to parse. Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index b4709acc465..89f02ab0410 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -2669,8 +2669,10 @@ int si_shader_binary_read(struct si_screen *sscreen,
binary->code[i]);
}
}
- fprintf(stderr, "SGPRS: %d\nVGPRS: %d\nCode Size: %d bytes\nLDS: %d blocks\n"
- "Scratch: %d bytes per wave\n",
+
+ fprintf(stderr, "*** SHADER STATS ***\n"
+ "SGPRS: %d\nVGPRS: %d\nCode Size: %d bytes\nLDS: %d blocks\n"
+ "Scratch: %d bytes per wave\n********************\n",
shader->num_sgprs, shader->num_vgprs, binary->code_size,
shader->lds_size, shader->scratch_bytes_per_wave);
}