[Mesa-dev] [PATCH 3.5/4] st/mesa: get on-disk shader cache
Timothy Arceri
tarceri at itsqueeze.com
Tue Feb 21 02:59:15 UTC 2017
On 21/02/17 13:20, Michel Dänzer wrote:
> 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)
Of course. Thanks.
>
> 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).
>
>
More information about the mesa-dev
mailing list