From c2c815afd92dc89c9503eb11ee943cc4664cf477 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Mon, 24 Nov 2025 11:37:03 +0200 Subject: [PATCH] nir: print out number of printfs Signed-off-by: Lionel Landwerlin Reviewed-by: Alyssa Rosenzweig Part-of: --- src/compiler/nir/nir_print.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c index da490c4508b..b6cbd506131 100644 --- a/src/compiler/nir/nir_print.c +++ b/src/compiler/nir/nir_print.c @@ -2956,6 +2956,8 @@ _nir_print_shader_annotated(nir_shader *shader, FILE *fp, fprintf(fp, "scratch: %u\n", shader->scratch_size); if (shader->constant_data_size) fprintf(fp, "constants: %u\n", shader->constant_data_size); + if (shader->printf_info_count) + fprintf(fp, "printfs: %u\n", shader->printf_info_count); if (NIR_DEBUG(PRINT_STRUCT_DECLS)) { nir_foreach_variable_in_shader(var, shader) {