diff options
author | Dylan Baker <[email protected]> | 2018-12-20 15:54:06 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-05-21 15:05:38 -0700 |
commit | 601c9bc13581a060c3ec437bd8c2a4a7cbdc4998 (patch) | |
tree | c4bef960f87c2340372bcde475d1cfff3c6287d1 /src/gallium/drivers/iris/iris_context.h | |
parent | dc5dc727d5932c69aab2c7964228ca351ec5da7d (diff) |
iris: Cache assembly shaders in the on-disk shader cache
This implements storing and retrieving iris_compiled_shader objects
from the on-disk shader cache.
(by Dylan Baker and Kenneth Graunke)
Diffstat (limited to 'src/gallium/drivers/iris/iris_context.h')
-rw-r--r-- | src/gallium/drivers/iris/iris_context.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_context.h b/src/gallium/drivers/iris/iris_context.h index a3e4da792e9..add6a9a9e34 100644 --- a/src/gallium/drivers/iris/iris_context.h +++ b/src/gallium/drivers/iris/iris_context.h @@ -781,6 +781,19 @@ struct iris_bo *iris_get_scratch_space(struct iris_context *ice, unsigned per_thread_scratch, gl_shader_stage stage); +/* iris_disk_cache.c */ + +void iris_disk_cache_store(struct disk_cache *cache, + const struct iris_uncompiled_shader *ish, + const struct iris_compiled_shader *shader, + const void *prog_key, + uint32_t prog_key_size); +struct iris_compiled_shader * +iris_disk_cache_retrieve(struct iris_context *ice, + const struct iris_uncompiled_shader *ish, + const void *prog_key, + uint32_t prog_key_size); + /* iris_program_cache.c */ void iris_init_program_cache(struct iris_context *ice); |