diff options
author | Marek Olšák <[email protected]> | 2017-03-10 12:19:50 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-03-13 23:34:52 +0100 |
commit | 686cd76a4c21a53ae24b26cbd3302a09f0a1ae35 (patch) | |
tree | 37efef0f91047f209ceb960f9ce9129d8f0fa83a | |
parent | c5a0829e1f56f6bb728ee2d200918ffa0f8842a6 (diff) |
st/mesa: disable the shader cache if dumping shaders
otherwise, cached shaders aren't dumped.
Reviewed-by: Timothy Arceri <[email protected]>
-rw-r--r-- | src/mesa/state_tracker/st_context.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c index 58552582b45..a528f343700 100644 --- a/src/mesa/state_tracker/st_context.c +++ b/src/mesa/state_tracker/st_context.c @@ -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); |