[Mesa-dev] [PATCH V2 3.5/4] st/mesa: get on-disk shader cache

Edward O'Callaghan funfunctor at folklore1984.net
Tue Feb 21 09:38:15 UTC 2017


Reviewed-by: Edward O'Callaghan <funfunctor at folklore1984.net>

On 02/21/2017 02:18 PM, Timothy Arceri wrote:
> V2: make sure callback exists before calling it
> ---
>  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 f4ad6d8..6321309 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
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170221/2b0f9689/attachment.sig>


More information about the mesa-dev mailing list