diff --git a/src/gallium/drivers/asahi/agx_state.c b/src/gallium/drivers/asahi/agx_state.c index 2b9c6613f67..9be0e2ca4bf 100644 --- a/src/gallium/drivers/asahi/agx_state.c +++ b/src/gallium/drivers/asahi/agx_state.c @@ -2775,7 +2775,7 @@ agx_destroy_meta_shaders(struct agx_context *ctx) _mesa_hash_table_destroy(ctx->generic_meta, agx_delete_compiled_shader); } -static struct agx_compiled_shader * +struct agx_compiled_shader * agx_build_meta_shader(struct agx_context *ctx, meta_shader_builder_t builder, void *data, size_t data_size) { diff --git a/src/gallium/drivers/asahi/agx_state.h b/src/gallium/drivers/asahi/agx_state.h index b05f5d662e1..3fb7804eb4b 100644 --- a/src/gallium/drivers/asahi/agx_state.h +++ b/src/gallium/drivers/asahi/agx_state.h @@ -1153,3 +1153,7 @@ typedef void (*meta_shader_builder_t)(struct nir_builder *b, const void *key); void agx_init_meta_shaders(struct agx_context *ctx); void agx_destroy_meta_shaders(struct agx_context *ctx); + +struct agx_compiled_shader *agx_build_meta_shader(struct agx_context *ctx, + meta_shader_builder_t builder, + void *data, size_t data_size);