st_debug_init();
- if (pipe->screen->get_disk_shader_cache &&
- !(ST_DEBUG & DEBUG_PRINT_IR))
+ if (pipe->screen->get_disk_shader_cache)
ctx->Cache = pipe->screen->get_disk_shader_cache(pipe->screen);
/* XXX: need a capability bit in gallium to query if the pipe
if (ST_DEBUG & DEBUG_PRINT_IR && ST_DEBUG & DEBUG_MESA)
_mesa_print_program(prog);
- if (ST_DEBUG & DEBUG_PRINT_IR)
- tgsi_dump(stcp->state.tokens, 0);
-
free_glsl_to_tgsi_visitor(stcp->glsl_to_tgsi);
stcp->glsl_to_tgsi = NULL;
return true;
prog->state.tokens = tokens;
}
- state = prog->state;
+ state = prog->state;
+
+ if (ST_DEBUG & DEBUG_PRINT_IR)
+ tgsi_dump(state.tokens, 0);
}
/* fill in new variant */
switch (prog->Base.info.stage) {