Mesa (main): nir: Print Mesh Shader specific info.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Nov 16 08:20:39 UTC 2021


Module: Mesa
Branch: main
Commit: 9cf4124be0f5d4259f4686633db71b48031b510f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9cf4124be0f5d4259f4686633db71b48031b510f

Author: Timur Kristóf <timur.kristof at gmail.com>
Date:   Thu Oct 21 11:21:50 2021 +0200

nir: Print Mesh Shader specific info.

Signed-off-by: Timur Kristóf <timur.kristof at gmail.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13466>

---

 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)



More information about the mesa-commit mailing list