radeonsi: Add header and footer to shader stat dump
authorTom Stellard <thomas.stellard@amd.com>
Mon, 13 Apr 2015 12:56:37 +0000 (12:56 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 14 Apr 2015 13:36:59 +0000 (13:36 +0000)
This makes it easier to parse.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader.c

index b4709acc4653c3024281afaaf6fb26fb65dc6539..89f02ab041097b9fb58693fd4d2792ee83fba619 100644 (file)
@@ -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);
        }