#include "pipe/p_compiler.h"
#include "util/u_debug.h"
-extern void
-st_print_current(void);
-
-
#define DEBUG_PIPE 0x1
#define DEBUG_TGSI 0x2
#define DEBUG_TEX 0x4
#include "st_cb_bitmap.h"
#include "tgsi/tgsi_transform.h"
#include "tgsi/tgsi_scan.h"
-#include "tgsi/tgsi_dump.h"
#include "util/u_debug.h"
struct tgsi_bitmap_transform {
#include "pipe/p_state.h"
#include "pipe/p_shader_tokens.h"
-#include "tgsi/tgsi_dump.h"
#include "cso_cache/cso_cache.h"
}
-
-/**
- * Print current state. May be called from inside gdb to see currently
- * bound vertex/fragment shaders and associated constants.
- */
-void
-st_print_current(void)
-{
- GET_CURRENT_CONTEXT(ctx);
- struct st_context *st = st_context(ctx);
-
-#if 0
- int i;
-
- printf("Vertex Transform Inputs:\n");
- for (i = 0; i < st->vp->state.num_inputs; i++) {
- printf(" Slot %d: VERT_ATTRIB_%d\n", i, st->vp->index_to_input[i]);
- }
-#endif
-
- if (st->vp->variants)
- tgsi_dump(st->vp->variants[0].tokens, 0);
- if (st->vp->Base.Parameters)
- _mesa_print_parameter_list(st->vp->Base.Parameters);
-
- tgsi_dump(st->fp->state.tokens, 0);
- if (st->fp->Base.Parameters)
- _mesa_print_parameter_list(st->fp->Base.Parameters);
-}
-
-
/**
* Installed as pipe_debug_callback when GL_DEBUG_OUTPUT is enabled.
*/
struct st_context;
-extern void
-st_print_current(void);
-
-
#define DEBUG_MESA 0x1
#define DEBUG_PRINT_IR 0x2
#define DEBUG_CONSTANTS 0x4
}
-/**
- * For debugging, print/dump the current vertex program.
- */
-void
-st_print_current_vertex_program(void)
-{
- GET_CURRENT_CONTEXT(ctx);
-
- if (ctx->VertexProgram._Current) {
- struct st_vertex_program *stvp =
- (struct st_vertex_program *) ctx->VertexProgram._Current;
- struct st_vp_variant *stv;
-
- debug_printf("Vertex program %u\n", stvp->Base.Id);
-
- for (stv = stvp->variants; stv; stv = stv->next) {
- debug_printf("variant %p\n", stv);
- tgsi_dump(stv->tokens, 0);
- }
- }
-}
-
-
/**
* Compile one shader variant.
*/
st_translate_common_program(struct st_context *st,
struct st_common_program *stcp);
-extern void
-st_print_current_vertex_program(void);
-
extern void
st_precompile_shader_variant(struct st_context *st,
struct gl_program *prog);
#include "st_tgsi_lower_yuv.h"
#include "tgsi/tgsi_transform.h"
#include "tgsi/tgsi_scan.h"
-#include "tgsi/tgsi_dump.h"
#include "util/u_debug.h"
#include "util/bitscan.h"