iris: export iris_upload_shader
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 22 Nov 2018 00:45:14 +0000 (16:45 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:10 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_context.h
src/gallium/drivers/iris/iris_program_cache.c

index 42adbf60d4e34bfdb369305d80a507f4f11a3a35..ce5fffb171e3e07feb36fad20327680da812189d 100644 (file)
@@ -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,
index 75dccbfb17eb87d0c817a43455cf2ca837edff94..294471493d3c3a92612a1730556858994b123cf3 100644 (file)
@@ -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,