diff options
author | Kenneth Graunke <[email protected]> | 2018-11-21 16:45:14 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:10 -0800 |
commit | e5df8913e191f0a190f9a693e3fd2400bed0348d (patch) | |
tree | dbe244b0273478d14492e4a7487429e9ef9c3735 | |
parent | d525b3dfad8378237cf8d592a0d5bd3bf39f87fa (diff) |
iris: export iris_upload_shader
-rw-r--r-- | src/gallium/drivers/iris/iris_context.h | 9 | ||||
-rw-r--r-- | src/gallium/drivers/iris/iris_program_cache.c | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_context.h b/src/gallium/drivers/iris/iris_context.h index 42adbf60d4e..ce5fffb171e 100644 --- a/src/gallium/drivers/iris/iris_context.h +++ b/src/gallium/drivers/iris/iris_context.h @@ -586,6 +586,15 @@ bool iris_bind_cached_shader(struct iris_context *ice, const void *key); void iris_unbind_shader(struct iris_context *ice, enum iris_program_cache_id cache_id); +struct iris_compiled_shader *iris_upload_shader(struct iris_context *ice, + enum iris_program_cache_id, + uint32_t key_size, + const void *key, + const void *assembly, + struct brw_stage_prog_data *, + uint32_t *streamout, + enum brw_param_builtin *sysv, + unsigned num_system_values); void iris_upload_and_bind_shader(struct iris_context *ice, enum iris_program_cache_id cache_id, const void *key, diff --git a/src/gallium/drivers/iris/iris_program_cache.c b/src/gallium/drivers/iris/iris_program_cache.c index 75dccbfb17e..294471493d3 100644 --- a/src/gallium/drivers/iris/iris_program_cache.c +++ b/src/gallium/drivers/iris/iris_program_cache.c @@ -232,7 +232,7 @@ find_existing_assembly(struct hash_table *cache, return NULL; } -static struct iris_compiled_shader * +struct iris_compiled_shader * iris_upload_shader(struct iris_context *ice, enum iris_program_cache_id cache_id, uint32_t key_size, |