otherwise, cached shaders aren't dumped.
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
st->ctx = ctx;
st->pipe = pipe;
- /* XXX: this is one-off, per-screen init: */
- st_debug_init();
-
/* state tracker needs the VBO module */
_vbo_CreateContext(ctx);
return NULL;
}
- if (pipe->screen->get_disk_shader_cache)
+ st_debug_init();
+
+ if (pipe->screen->get_disk_shader_cache &&
+ !(ST_DEBUG & DEBUG_TGSI))
ctx->Cache = pipe->screen->get_disk_shader_cache(pipe->screen);
st_init_driver_flags(&ctx->DriverFlags);