nir: Print the constant data size associated with a shader.
[mesa.git] / src / compiler / nir / nir_print.c
index 0e24a68402a48bd901c8623cdb3e9e7b7d27b822..7931a88cb20e40da814dfac5f9188ca9b7424432 100644 (file)
@@ -1517,6 +1517,8 @@ nir_print_shader_annotated(nir_shader *shader, FILE *fp,
    fprintf(fp, "shared: %u\n", shader->num_shared);
    if (shader->scratch_size)
       fprintf(fp, "scratch: %u\n", shader->scratch_size);
+   if (shader->constant_data_size)
+      fprintf(fp, "constants: %u\n", shader->constant_data_size);
 
    nir_foreach_variable_in_shader(var, shader)
       print_var_decl(var, &state);