From: Rob Clark Date: Sat, 14 May 2016 17:35:54 +0000 (-0400) Subject: nir: forward-declare 'struct gl_shader_program' X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f06343d6eabf8f91e4cfb2b2d7313e9d5ca0797a;p=mesa.git nir: forward-declare 'struct gl_shader_program' Drop extra #include which is otherwise unneeded (and makes this header difficult to include from outside of src/mesa). Signed-off-by: Rob Clark Reviewed-by: Jason Ekstrand --- diff --git a/src/compiler/nir/glsl_to_nir.h b/src/compiler/nir/glsl_to_nir.h index e3fe9b0246a..14641fc5176 100644 --- a/src/compiler/nir/glsl_to_nir.h +++ b/src/compiler/nir/glsl_to_nir.h @@ -26,12 +26,13 @@ */ #include "nir.h" -#include "compiler/glsl/glsl_parser_extras.h" #ifdef __cplusplus extern "C" { #endif +struct gl_shader_program; + nir_shader *glsl_to_nir(const struct gl_shader_program *shader_prog, gl_shader_stage stage, const nir_shader_compiler_options *options);