draw: Use symbolic primitive names in debug output.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 15 Nov 2012 20:36:55 +0000 (20:36 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 4 Dec 2012 19:35:18 +0000 (19:35 +0000)
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/draw/draw_gs.c

index 60e39520f8ee96273da3d43ab8896ab919250825..3b3ff21c6f7bb602359d0a85ee6f73aa59e76e9c 100644 (file)
@@ -424,9 +424,10 @@ int draw_geometry_shader_run(struct draw_geometry_shader *shader,
                 __FUNCTION__, num_input_verts, num_in_primitives);
    debug_printf("\tlinear = %d, prim_info->count = %d\n",
                 input_prim->linear, input_prim->count);
-   debug_printf("\tprimt pipe = %d, shader in = %d, shader out = %d, max out = %d\n",
-                input_prim->prim, shader->input_primitive,
-                shader->output_primitive,
+   debug_printf("\tprim pipe = %s, shader in = %s, shader out = %s, max out = %d\n",
+                u_prim_name(input_prim->prim),
+                u_prim_name(shader->input_primitive),
+                u_prim_name(shader->output_primitive),
                 shader->max_output_vertices);
 #endif