summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_nir.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/state_tracker/st_nir.h')
-rw-r--r--src/mesa/state_tracker/st_nir.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_nir.h b/src/mesa/state_tracker/st_nir.h
index 1192981bda7..49ba573df2d 100644
--- a/src/mesa/state_tracker/st_nir.h
+++ b/src/mesa/state_tracker/st_nir.h
@@ -24,8 +24,29 @@
#ifndef ST_NIR_H
#define ST_NIR_H
+#include "st_context.h"
+#include "compiler/shader_enums.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct nir_shader nir_shader;
void st_nir_lower_builtin(nir_shader *shader);
+nir_shader * st_glsl_to_nir(struct st_context *st, struct gl_program *prog,
+ struct gl_shader_program *shader_program,
+ gl_shader_stage stage);
+
+void st_finalize_nir(struct st_context *st, struct gl_program *prog, nir_shader *nir);
+
+struct gl_program *
+st_nir_get_mesa_program(struct gl_context *ctx,
+ struct gl_shader_program *shader_program,
+ struct gl_shader *shader);
+
+#ifdef __cplusplus
+}
+#endif
#endif /* ST_NIR_H */