diff options
Diffstat (limited to 'src/mesa/main/glspirv.h')
-rw-r--r-- | src/mesa/main/glspirv.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/glspirv.h b/src/mesa/main/glspirv.h index 0f03b75c111..81626ce75b5 100644 --- a/src/mesa/main/glspirv.h +++ b/src/mesa/main/glspirv.h @@ -24,6 +24,7 @@ #ifndef GLSPIRV_H #define GLSPIRV_H +#include "compiler/nir/nir.h" #include "mtypes.h" #ifdef __cplusplus @@ -80,6 +81,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 */ |