glsl: lower mediump temporaries to 16 bits except structures (v2)
[mesa.git] / src / mesa / main / glspirv.h
index 0f03b75c1117130748b22524c19ff3590014f0ce..8025c17c099d0f4e3f8d835f4f4cb2d5d78d6767 100644 (file)
 #ifndef GLSPIRV_H
 #define GLSPIRV_H
 
-#include "mtypes.h"
+#include "compiler/nir/nir.h"
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
+struct gl_shader_program;
+struct gl_context;
+struct gl_shader;
+
 /**
  * A SPIR-V module contains the raw SPIR-V binary as set by ShaderBinary.
  *
@@ -80,6 +84,12 @@ void
 _mesa_spirv_link_shaders(struct gl_context *ctx,
                          struct gl_shader_program *prog);
 
+nir_shader *
+_mesa_spirv_to_nir(struct gl_context *ctx,
+                   const struct gl_shader_program *prog,
+                   gl_shader_stage stage,
+                   const nir_shader_compiler_options *options);
+
 /**
  * \name API functions
  */