draw/gs: add more info to debugging.
authorDave Airlie <airlied@redhat.com>
Mon, 8 Jun 2020 07:04:50 +0000 (17:04 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 11 Jun 2020 04:41:02 +0000 (14:41 +1000)
adds invocations and vertex streams to default off debug,
fixes compile as well due to missing ,

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

src/gallium/auxiliary/draw/draw_gs.c

index 0c07d38e8b2438e4da37e916a8232f552cfa6305..fd393ded62879adc6d6a3fe26ef9ae716e692881 100644 (file)
@@ -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));