[Mesa-dev] [PATCH 1/3] radeonsi: Add header and footer to shader stat dump
Tom Stellard
thomas.stellard at amd.com
Mon Apr 13 11:21:02 PDT 2015
This makes it easier to parse.
---
src/gallium/drivers/radeonsi/si_shader.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index b4709ac..89f02ab 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);
}
--
2.0.4
More information about the mesa-dev
mailing list