[Mesa-dev] [PATCH 5/9] draw: Use symbolic primitive names in debug output.

Brian Paul brianp at vmware.com
Tue Dec 4 07:14:04 PST 2012


On 12/04/2012 07:13 AM, jfonseca at vmware.com wrote:
> From: José Fonseca<jfonseca at vmware.com>
>
> ---
>   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 60e3952..ceaed11 100644
> --- a/src/gallium/auxiliary/draw/draw_gs.c
> +++ b/src/gallium/auxiliary/draw/draw_gs.c
> @@ -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("\tprimt 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
>

The "\tprimt pipe = %s" part looks weird.  How about "\tprim type = %s"

-Brian



More information about the mesa-dev mailing list