Mesa (master): radv: report the scratch private memory size with shader stats

Samuel Pitoiset hakzsam at kemper.freedesktop.org
Tue Mar 6 09:39:55 UTC 2018


Module: Mesa
Branch: master
Commit: e96e6f60f705c04a3d437eea9fe308826b494c67
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e96e6f60f705c04a3d437eea9fe308826b494c67

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Thu Mar  1 22:12:56 2018 +0100

radv: report the scratch private memory size with shader stats

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Dave Airlie <airlied at redhat.com>

---

 src/amd/vulkan/radv_shader.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c
index e1de01f551..8a241f8ec8 100644
--- a/src/amd/vulkan/radv_shader.c
+++ b/src/amd/vulkan/radv_shader.c
@@ -627,13 +627,15 @@ generate_shader_stats(struct radv_device *device,
 				   "VGPRS: %d\n"
 				   "Spilled SGPRs: %d\n"
 				   "Spilled VGPRs: %d\n"
+				   "PrivMem VGPRS: %d\n"
 				   "Code Size: %d bytes\n"
 				   "LDS: %d blocks\n"
 				   "Scratch: %d bytes per wave\n"
 				   "Max Waves: %d\n"
 				   "********************\n\n\n",
 				   conf->num_sgprs, conf->num_vgprs,
-				   conf->spilled_sgprs, conf->spilled_vgprs, variant->code_size,
+				   conf->spilled_sgprs, conf->spilled_vgprs,
+				   variant->info.private_mem_vgprs, variant->code_size,
 				   conf->lds_size, conf->scratch_bytes_per_wave,
 				   max_simd_waves);
 }




More information about the mesa-commit mailing list