st/mesa: get on-disk shader cache
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 20 Feb 2017 22:00:49 +0000 (09:00 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 22 Feb 2017 22:20:22 +0000 (09:20 +1100)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_context.c

index f4ad6d8ad1600de5ee0b891bd25fb478509ebad8..632130964847180679c7cc9e78e722731d71a1a1 100644 (file)
@@ -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