[Mesa-dev] [PATCH 3.5/4] st/mesa: get on-disk shader cache
Michel Dänzer
michel at daenzer.net
Tue Feb 21 02:20:18 UTC 2017
On 21/02/17 08:23 AM, Timothy Arceri wrote:
> ---
> src/mesa/state_tracker/st_context.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
> index f4ad6d8..153f01c 100644
> --- a/src/mesa/state_tracker/st_context.c
> +++ b/src/mesa/state_tracker/st_context.c
> @@ -538,6 +538,8 @@ struct st_context *st_create_context(gl_api api, struct pipe_context *pipe,
> return NULL;
> }
>
> + ctx->Cache = pipe->screen->get_disk_shader_cache(pipe->screen);
You probably want to guard this by
if (pipe->screen->get_disk_shader_cache)
otherwise you'd need to make sure that every driver sets
pipe_screen::get_disk_shader_cache.
Speaking of which, you probably need to add a get_disk_shader_cache
implementation to all the wrapper drivers (ddebug, rbug, trace).
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
More information about the mesa-dev
mailing list