st/nir: Make new helpers for constructing built-in NIR shaders.
[mesa.git] / src / mesa / state_tracker / st_nir.h
index 1bb65c9d3f1491c844bd999a7690633753d3cde9..fcd67e32d4434aa42d241270b14898b41cd90cd0 100644 (file)
@@ -55,6 +55,21 @@ st_link_nir(struct gl_context *ctx,
 void st_nir_assign_varying_locations(struct st_context *st,
                                      struct nir_shader *nir);
 
+struct pipe_shader_state *
+st_nir_finish_builtin_shader(struct st_context *st,
+                             struct nir_shader *nir,
+                             const char *name);
+
+struct pipe_shader_state *
+st_nir_make_passthrough_shader(struct st_context *st,
+                               const char *shader_name,
+                               gl_shader_stage stage,
+                               unsigned num_vars,
+                               unsigned *input_locations,
+                               unsigned *output_locations,
+                               unsigned *interpolation_modes,
+                               unsigned sysval_mask);
+
 #ifdef __cplusplus
 }
 #endif