aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2017-04-06 11:56:23 -0400
committerRob Clark <[email protected]>2017-04-14 12:46:12 -0400
commit9fc3e7137ac5566afd3f287ea67c0cdf3c3bfe97 (patch)
tree0a1001145f76db77a622c3ae55fbd6828085accd /src
parent16d493f1e7a58e8e1f6e665ac5e21f1b35b1f8f1 (diff)
nir/print: add compute shader info
Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Alejandro PiƱeiro <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/compiler/nir/nir_print.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c
index af105557123..e6c5c9c830d 100644
--- a/src/compiler/nir/nir_print.c
+++ b/src/compiler/nir/nir_print.c
@@ -1169,6 +1169,19 @@ nir_print_shader_annotated(nir_shader *shader, FILE *fp,
if (shader->info->label)
fprintf(fp, "label: %s\n", shader->info->label);
+ switch (shader->stage) {
+ case MESA_SHADER_COMPUTE:
+ fprintf(fp, "local-size: %u, %u, %u%s\n",
+ shader->info->cs.local_size[0],
+ shader->info->cs.local_size[1],
+ shader->info->cs.local_size[2],
+ shader->info->cs.local_size_variable ? " (variable)" : "");
+ fprintf(fp, "shared-size: %u\n", shader->info->cs.shared_size);
+ break;
+ default:
+ break;
+ }
+
fprintf(fp, "inputs: %u\n", shader->num_inputs);
fprintf(fp, "outputs: %u\n", shader->num_outputs);
fprintf(fp, "uniforms: %u\n", shader->num_uniforms);