From e5df8913e191f0a190f9a693e3fd2400bed0348d Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 21 Nov 2018 16:45:14 -0800 Subject: [PATCH] iris: export iris_upload_shader --- src/gallium/drivers/iris/iris_context.h | 9 +++++++++ src/gallium/drivers/iris/iris_program_cache.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) 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, -- 2.30.2