From: Marek Olšák Date: Sat, 9 Nov 2019 00:43:10 +0000 (-0500) Subject: st/mesa: remove unused TGSI-only debug printing functions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3a23af9f44dd9855e6080b76bb972acd6e4ab569;p=mesa.git st/mesa: remove unused TGSI-only debug printing functions Reviewed-by: Timothy Arceri --- diff --git a/src/gallium/drivers/llvmpipe/lp_debug.h b/src/gallium/drivers/llvmpipe/lp_debug.h index d6443ba6e86..1accf3b1d92 100644 --- a/src/gallium/drivers/llvmpipe/lp_debug.h +++ b/src/gallium/drivers/llvmpipe/lp_debug.h @@ -32,10 +32,6 @@ #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 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 @@ -2002,29 +2002,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. */ 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 @@ -377,9 +377,6 @@ extern bool 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"