tgsi_dump.h File Reference

Include dependency graph for tgsi_dump.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void tgsi_dump_str (const struct tgsi_token *tokens, uint flags, char *str, size_t size)
void tgsi_dump (const struct tgsi_token *tokens, uint flags)
void tgsi_dump_immediate (const struct tgsi_full_immediate *imm)
void tgsi_dump_instruction (const struct tgsi_full_instruction *inst, uint instno)
void tgsi_dump_declaration (const struct tgsi_full_declaration *decl)


Function Documentation

void tgsi_dump ( const struct tgsi_token tokens,
uint  flags 
)

Definition at line 506 of file tgsi_dump.c.

References dump_ctx_printf(), tgsi_iterate_context::epilog, dump_ctx::indent, dump_ctx::instno, dump_ctx::iter, iter_declaration(), iter_immediate(), iter_instruction(), tgsi_iterate_context::iterate_declaration, tgsi_iterate_context::iterate_immediate, tgsi_iterate_context::iterate_instruction, dump_ctx::printf, prolog(), tgsi_iterate_context::prolog, and tgsi_iterate_shader().

00509 {
00510    struct dump_ctx ctx;
00511 
00512    ctx.iter.prolog = prolog;
00513    ctx.iter.iterate_instruction = iter_instruction;
00514    ctx.iter.iterate_declaration = iter_declaration;
00515    ctx.iter.iterate_immediate = iter_immediate;
00516    ctx.iter.epilog = NULL;
00517 
00518    ctx.instno = 0;
00519    ctx.indent = 0;
00520    ctx.printf = dump_ctx_printf;
00521 
00522    tgsi_iterate_shader( tokens, &ctx.iter );
00523 }

void tgsi_dump_declaration ( const struct tgsi_full_declaration decl  ) 

Definition at line 272 of file tgsi_dump.c.

References dump_ctx_printf(), dump_ctx::iter, iter_declaration(), and dump_ctx::printf.

00274 {
00275    struct dump_ctx ctx;
00276 
00277    ctx.printf = dump_ctx_printf;
00278 
00279    iter_declaration( &ctx.iter, (struct tgsi_full_declaration *)decl );
00280 }

void tgsi_dump_immediate ( const struct tgsi_full_immediate imm  ) 

Definition at line 315 of file tgsi_dump.c.

References dump_ctx_printf(), dump_ctx::iter, iter_immediate(), and dump_ctx::printf.

00317 {
00318    struct dump_ctx ctx;
00319 
00320    ctx.printf = dump_ctx_printf;
00321 
00322    iter_immediate( &ctx.iter, (struct tgsi_full_immediate *)imm );
00323 }

void tgsi_dump_instruction ( const struct tgsi_full_instruction inst,
uint  instno 
)

Definition at line 479 of file tgsi_dump.c.

References dump_ctx_printf(), dump_ctx::indent, dump_ctx::instno, dump_ctx::iter, iter_instruction(), and dump_ctx::printf.

00482 {
00483    struct dump_ctx ctx;
00484 
00485    ctx.instno = instno;
00486    ctx.indent = 0;
00487    ctx.printf = dump_ctx_printf;
00488 
00489    iter_instruction( &ctx.iter, (struct tgsi_full_instruction *)inst );
00490 }

void tgsi_dump_str ( const struct tgsi_token tokens,
uint  flags,
char *  str,
size_t  size 
)

Definition at line 557 of file tgsi_dump.c.

References str_dump_ctx::base, tgsi_iterate_context::epilog, dump_ctx::indent, dump_ctx::instno, dump_ctx::iter, iter_declaration(), iter_immediate(), iter_instruction(), tgsi_iterate_context::iterate_declaration, tgsi_iterate_context::iterate_immediate, tgsi_iterate_context::iterate_instruction, str_dump_ctx::left, dump_ctx::printf, prolog(), tgsi_iterate_context::prolog, str_dump_ctx::ptr, str_dump_ctx::str, str_dump_ctx_printf(), and tgsi_iterate_shader().

00562 {
00563    struct str_dump_ctx ctx;
00564 
00565    ctx.base.iter.prolog = prolog;
00566    ctx.base.iter.iterate_instruction = iter_instruction;
00567    ctx.base.iter.iterate_declaration = iter_declaration;
00568    ctx.base.iter.iterate_immediate = iter_immediate;
00569    ctx.base.iter.epilog = NULL;
00570 
00571    ctx.base.instno = 0;
00572    ctx.base.indent = 0;
00573    ctx.base.printf = &str_dump_ctx_printf;
00574 
00575    ctx.str = str;
00576    ctx.str[0] = 0;
00577    ctx.ptr = str;
00578    ctx.left = (int)size;
00579 
00580    tgsi_iterate_shader( tokens, &ctx.base.iter );
00581 }


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