mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-21 18:40:42 +01:00
st/mesa: get on-disk shader cache
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>
This commit is contained in:
parent
8239eef2f7
commit
27cecafefd
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue