diff options
author | Marek Olšák <[email protected]> | 2019-11-08 19:43:10 -0500 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-11-11 19:45:12 -0500 |
commit | 3a23af9f44dd9855e6080b76bb972acd6e4ab569 (patch) | |
tree | 87cdb1c70cbd0ba54adfecd8b60d986b42855a6b /src/mesa | |
parent | d29a33286260ac2de3b7718d9133923c40eeb1f7 (diff) |
st/mesa: remove unused TGSI-only debug printing functions
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_cb_bitmap_shader.c | 1 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_debug.c | 32 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_debug.h | 4 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_program.c | 23 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_program.h | 3 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_tgsi_lower_yuv.c | 1 |
6 files changed, 0 insertions, 64 deletions
diff --git a/src/mesa/state_tracker/st_cb_bitmap_shader.c b/src/mesa/state_tracker/st_cb_bitmap_shader.c index 7ce078d5008..ab9a10748e9 100644 --- a/src/mesa/state_tracker/st_cb_bitmap_shader.c +++ b/src/mesa/state_tracker/st_cb_bitmap_shader.c @@ -29,7 +29,6 @@ #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 { diff --git a/src/mesa/state_tracker/st_debug.c b/src/mesa/state_tracker/st_debug.c index 66085b646c5..4505d2b8e10 100644 --- a/src/mesa/state_tracker/st_debug.c +++ b/src/mesa/state_tracker/st_debug.c @@ -32,7 +32,6 @@ #include "pipe/p_state.h" #include "pipe/p_shader_tokens.h" -#include "tgsi/tgsi_dump.h" #include "cso_cache/cso_cache.h" @@ -73,37 +72,6 @@ st_debug_init(void) } - -/** - * 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. */ diff --git a/src/mesa/state_tracker/st_debug.h b/src/mesa/state_tracker/st_debug.h index 83f9a43bcbf..6e4b397da0d 100644 --- a/src/mesa/state_tracker/st_debug.h +++ b/src/mesa/state_tracker/st_debug.h @@ -34,10 +34,6 @@ struct st_context; -extern void -st_print_current(void); - - #define DEBUG_MESA 0x1 #define DEBUG_PRINT_IR 0x2 #define DEBUG_CONSTANTS 0x4 diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c index 9fa12c9f65d..2ad19dc8dae 100644 --- a/src/mesa/state_tracker/st_program.c +++ b/src/mesa/state_tracker/st_program.c @@ -2003,29 +2003,6 @@ st_destroy_program_variants(struct st_context *st) /** - * 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. */ void diff --git a/src/mesa/state_tracker/st_program.h b/src/mesa/state_tracker/st_program.h index 900f5fc8ef1..830dd6a7ca5 100644 --- a/src/mesa/state_tracker/st_program.h +++ b/src/mesa/state_tracker/st_program.h @@ -378,9 +378,6 @@ 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); diff --git a/src/mesa/state_tracker/st_tgsi_lower_yuv.c b/src/mesa/state_tracker/st_tgsi_lower_yuv.c index 73437ddda70..2ca069d2dba 100644 --- a/src/mesa/state_tracker/st_tgsi_lower_yuv.c +++ b/src/mesa/state_tracker/st_tgsi_lower_yuv.c @@ -26,7 +26,6 @@ #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" |