nv50,nvc0: Display shared memory usage in pipe_debug_message
authorPierre Moreau <pierre.morrow@free.fr>
Mon, 2 Oct 2017 18:57:11 +0000 (20:57 +0200)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 4 Nov 2017 18:12:07 +0000 (14:12 -0400)
Signed-off-by: Pierre Moreau <pierre.morrow@free.fr>
src/gallium/drivers/nouveau/nv50/nv50_program.c
src/gallium/drivers/nouveau/nvc0/nvc0_program.c

index 6b472d7fdd08ef6e05d1a536c85020fd122a7ca5..6e943a3d9431527cec5e6c83b5d712cd505a0df2 100644 (file)
@@ -431,9 +431,10 @@ nv50_program_translate(struct nv50_program *prog, uint16_t chipset,
                                                    &prog->pipe.stream_output);
 
    pipe_debug_message(debug, SHADER_INFO,
-                      "type: %d, local: %d, gpr: %d, inst: %d, bytes: %d",
-                      prog->type, info->bin.tlsSpace, prog->max_gpr,
-                      info->bin.instructions, info->bin.codeSize);
+                      "type: %d, local: %d, shared: %d, gpr: %d, inst: %d, bytes: %d",
+                      prog->type, info->bin.tlsSpace, info->bin.smemSize,
+                      prog->max_gpr, info->bin.instructions,
+                      info->bin.codeSize);
 
 out:
    FREE(info);
index a6112f401effee3f1ec7197c0fbcd4cc11c9bc49..c95a96c7178c151c3953f1fa4796dff8990ba7dc 100644 (file)
@@ -684,9 +684,10 @@ nvc0_program_translate(struct nvc0_program *prog, uint16_t chipset,
                                                 &prog->pipe.stream_output);
 
    pipe_debug_message(debug, SHADER_INFO,
-                      "type: %d, local: %d, gpr: %d, inst: %d, bytes: %d",
-                      prog->type, info->bin.tlsSpace, prog->num_gprs,
-                      info->bin.instructions, info->bin.codeSize);
+                      "type: %d, local: %d, shared: %d, gpr: %d, inst: %d, bytes: %d",
+                      prog->type, info->bin.tlsSpace, info->bin.smemSize,
+                      prog->num_gprs, info->bin.instructions,
+                      info->bin.codeSize);
 
 #ifdef DEBUG
    if (debug_get_option("NV50_PROG_CHIPSET", NULL) && info->dbgFlags)