From 27cecafefd4371b13c5df1ea502406ff55dee12e Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Tue, 21 Feb 2017 09:00:49 +1100 Subject: st/mesa: get on-disk shader cache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák Reviewed-by: Edward O'Callaghan Reviewed-by: Nicolai Hähnle --- src/mesa/state_tracker/st_context.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c index f4ad6d8ad16..63213096484 100644 --- a/src/mesa/state_tracker/st_context.c +++ b/src/mesa/state_tracker/st_context.c @@ -538,6 +538,9 @@ struct st_context *st_create_context(gl_api api, struct pipe_context *pipe, return NULL; } + if (pipe->screen->get_disk_shader_cache) + ctx->Cache = pipe->screen->get_disk_shader_cache(pipe->screen); + st_init_driver_flags(&ctx->DriverFlags); /* XXX: need a capability bit in gallium to query if the pipe -- cgit v1.2.3