Mesa (master): draw/gs: add more info to debugging.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 11 05:03:21 UTC 2020


Module: Mesa
Branch: master
Commit: 069aee7cc543530b901d7afdb5822f722d9375d6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=069aee7cc543530b901d7afdb5822f722d9375d6

Author: Dave Airlie <airlied at redhat.com>
Date:   Mon Jun  8 17:04:50 2020 +1000

draw/gs: add more info to debugging.

adds invocations and vertex streams to default off debug,
fixes compile as well due to missing ,

Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5379>

---

 src/gallium/auxiliary/draw/draw_gs.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/gallium/auxiliary/draw/draw_gs.c b/src/gallium/auxiliary/draw/draw_gs.c
index 0c07d38e8b2..fd393ded628 100644
--- a/src/gallium/auxiliary/draw/draw_gs.c
+++ b/src/gallium/auxiliary/draw/draw_gs.c
@@ -608,11 +608,12 @@ int draw_geometry_shader_run(struct draw_geometry_shader *shader,
    }
 
 #if 0
-   debug_printf("%s count = %d (in prims # = %d)\n",
-                __FUNCTION__, num_input_verts, num_in_primitives);
+   debug_printf("%s count = %d (in prims # = %d, invocs = %d, streams = %d)\n",
+                __FUNCTION__, num_input_verts, num_in_primitives,
+                shader->num_invocations, shader->num_vertex_streams);
    debug_printf("\tlinear = %d, prim_info->count = %d\n",
                 input_prim->linear, input_prim->count);
-   debug_printf("\tprim pipe = %s, shader in = %s, shader out = %s\n"
+   debug_printf("\tprim pipe = %s, shader in = %s, shader out = %s\n",
                 u_prim_name(input_prim->prim),
                 u_prim_name(shader->input_primitive),
                 u_prim_name(shader->output_primitive));



More information about the mesa-commit mailing list