projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8239eef
)
st/mesa: get on-disk shader cache
author
Timothy Arceri
<tarceri@itsqueeze.com>
Mon, 20 Feb 2017 22:00:49 +0000
(09:00 +1100)
committer
Timothy 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
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_context.c
b/src/mesa/state_tracker/st_context.c
index f4ad6d8ad1600de5ee0b891bd25fb478509ebad8..632130964847180679c7cc9e78e722731d71a1a1 100644
(file)
--- 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