diff options
author | Keith Whitwell <keithw@vmware.com> | 2009-04-28 14:50:05 +0100 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2009-04-28 18:15:17 +0100 |
commit | eb979cef8535914f428d2462e78f713da558fc18 (patch) | |
tree | 9f02dfbaa7492c2214e9d4c000952387f4e8b98b /src/gallium/auxiliary/draw/draw_pipe_validate.c | |
parent | afc0c59dbd7f89d914763fd78701461f22c00450 (diff) |
gallium/draw: add ability to print out active pipeline stages
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pipe_validate.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pipe_validate.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pipe_validate.c b/src/gallium/auxiliary/draw/draw_pipe_validate.c index 03e842ce08..bea90e50d3 100644 --- a/src/gallium/auxiliary/draw/draw_pipe_validate.c +++ b/src/gallium/auxiliary/draw/draw_pipe_validate.c @@ -262,7 +262,15 @@ static struct draw_stage *validate_pipeline( struct draw_stage *stage ) draw->pipeline.first = next; - return next; + + if (0) { + debug_printf("draw pipeline:\n"); + for (next = draw->pipeline.first; next ; next = next->next ) + debug_printf(" %s\n", next->name); + debug_printf("\n"); + } + + return draw->pipeline.first; } static void validate_tri( struct draw_stage *stage, @@ -318,6 +326,7 @@ struct draw_stage *draw_validate_stage( struct draw_context *draw ) return NULL; stage->draw = draw; + stage->name = "validate"; stage->next = NULL; stage->point = validate_point; stage->line = validate_line; |