st_debug_init();
if (pipe->screen->get_disk_shader_cache &&
- !(ST_DEBUG & DEBUG_TGSI))
+ !(ST_DEBUG & DEBUG_PRINT_IR))
ctx->Cache = pipe->screen->get_disk_shader_cache(pipe->screen);
/* XXX: need a capability bit in gallium to query if the pipe
static const struct debug_named_value st_debug_flags[] = {
{ "mesa", DEBUG_MESA, NULL },
- { "tgsi", DEBUG_TGSI, NULL },
+ { "tgsi", DEBUG_PRINT_IR, NULL },
{ "constants",DEBUG_CONSTANTS, NULL },
{ "pipe", DEBUG_PIPE, NULL },
{ "tex", DEBUG_TEX, NULL },
#define DEBUG_MESA 0x1
-#define DEBUG_TGSI 0x2
+#define DEBUG_PRINT_IR 0x2
#define DEBUG_CONSTANTS 0x4
#define DEBUG_PIPE 0x8
#define DEBUG_TEX 0x10
state.tokens = tokens;
}
- if (ST_DEBUG & DEBUG_TGSI) {
+ if (ST_DEBUG & DEBUG_PRINT_IR) {
tgsi_dump(state.tokens, 0);
debug_printf("\n");
}
state.tokens = tokens;
}
- if (ST_DEBUG & DEBUG_TGSI) {
+ if (ST_DEBUG & DEBUG_PRINT_IR) {
tgsi_dump(state.tokens, 0);
debug_printf("\n");
}
st_store_ir_in_disk_cache(st, prog, false);
- if ((ST_DEBUG & DEBUG_TGSI) && (ST_DEBUG & DEBUG_MESA)) {
+ if ((ST_DEBUG & DEBUG_PRINT_IR) && (ST_DEBUG & DEBUG_MESA)) {
_mesa_print_program(prog);
debug_printf("\n");
}
- if (ST_DEBUG & DEBUG_TGSI) {
+ if (ST_DEBUG & DEBUG_PRINT_IR) {
tgsi_dump(stcp->state.tokens, 0);
debug_printf("\n");
}