st_debug.c File Reference

Include dependency graph for st_debug.c:

Go to the source code of this file.

Functions

void st_print_current (void)
 Print current state.


Function Documentation

void st_print_current ( void   ) 

Print current state.

May be called from inside gdb to see currently bound vertex/fragment shaders and associated constants.

Definition at line 49 of file st_debug.c.

References st_fragment_program::Base, st_vertex_program::Base, st_context::ctx, st_context::fp, st_vertex_program::index_to_input, st_fragment_program::state, st_vertex_program::state, tgsi_dump(), pipe_shader_state::tokens, and st_context::vp.

00050 {
00051    GET_CURRENT_CONTEXT(ctx);
00052    struct st_context *st = ctx->st;
00053 
00054 #if 0
00055    int i;
00056 
00057    printf("Vertex Transform Inputs:\n");
00058    for (i = 0; i < st->vp->state.num_inputs; i++) {
00059       printf("  Slot %d:  VERT_ATTRIB_%d\n", i, st->vp->index_to_input[i]);
00060    }
00061 #endif
00062 
00063    tgsi_dump( st->vp->state.tokens, 0 );
00064    if (st->vp->Base.Base.Parameters)
00065       _mesa_print_parameter_list(st->vp->Base.Base.Parameters);
00066 
00067    tgsi_dump( st->fp->state.tokens, 0 );
00068    if (st->fp->Base.Base.Parameters)
00069       _mesa_print_parameter_list(st->fp->Base.Base.Parameters);
00070 }


Generated on Tue Sep 29 06:25:54 2009 for Gallium3D by  doxygen 1.5.4