From 9cf4124be0f5d4259f4686633db71b48031b510f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timur=20Krist=C3=B3f?= Date: Thu, 21 Oct 2021 11:21:50 +0200 Subject: [PATCH] nir: Print Mesh Shader specific info. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Timur Kristóf Reviewed-by: Caio Marcelo de Oliveira Filho Part-of: --- src/compiler/nir/nir_print.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c index 56ce1f9be44..83f471b27f6 100644 --- a/src/compiler/nir/nir_print.c +++ b/src/compiler/nir/nir_print.c @@ -1638,6 +1638,10 @@ nir_print_shader_annotated(nir_shader *shader, FILE *fp, fprintf(fp, "output primitive: %s\n", primitive_name(shader->info.gs.output_primitive)); fprintf(fp, "active_stream_mask: 0x%x\n", shader->info.gs.active_stream_mask); fprintf(fp, "uses_end_primitive: %u\n", shader->info.gs.uses_end_primitive); + } else if (shader->info.stage == MESA_SHADER_MESH) { + fprintf(fp, "output primitive: %s\n", primitive_name(shader->info.mesh.primitive_type)); + fprintf(fp, "max primitives out: %u\n", shader->info.mesh.max_primitives_out); + fprintf(fp, "max vertices out: %u\n", shader->info.mesh.max_vertices_out); } nir_foreach_variable_in_shader(var, shader)