mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
st/mesa: disable the shader cache if dumping shaders
otherwise, cached shaders aren't dumped. Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
c5a0829e1f
commit
686cd76a4c
1 changed files with 4 additions and 4 deletions
|
|
@ -330,9 +330,6 @@ st_create_context_priv( struct gl_context *ctx, struct pipe_context *pipe,
|
|||
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);
|
||||
|
||||
|
|
@ -536,7 +533,10 @@ struct st_context *st_create_context(gl_api api, struct pipe_context *pipe,
|
|||
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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue