X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fmain%2Fglspirv.h;h=8025c17c099d0f4e3f8d835f4f4cb2d5d78d6767;hb=7aaa0e59086fa2bf9c5fa7db2774cb2aa32f95b9;hp=0f03b75c1117130748b22524c19ff3590014f0ce;hpb=9c36e9f8626fb2b02736abbd11e783b61a40959c;p=mesa.git diff --git a/src/mesa/main/glspirv.h b/src/mesa/main/glspirv.h index 0f03b75c111..8025c17c099 100644 --- a/src/mesa/main/glspirv.h +++ b/src/mesa/main/glspirv.h @@ -24,12 +24,16 @@ #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 */