st/mesa: remove unused TGSI-only debug printing functions

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
Marek Olšák 2019-11-08 19:43:10 -05:00
parent d29a332862
commit 3a23af9f44
7 changed files with 0 additions and 68 deletions

View file

@ -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

View file

@ -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 {

View file

@ -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.
*/

View file

@ -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

View file

@ -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.
*/

View file

@ -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);

View file

@ -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"