nir: forward-declare 'struct gl_shader_program'
authorRob Clark <robclark@freedesktop.org>
Sat, 14 May 2016 17:35:54 +0000 (13:35 -0400)
committerRob Clark <robclark@freedesktop.org>
Sun, 15 May 2016 21:25:48 +0000 (17:25 -0400)
Drop extra #include which is otherwise unneeded (and makes this header
difficult to include from outside of src/mesa).

Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/glsl_to_nir.h

index e3fe9b0246a54b725f2c1a3109209d58ffb87466..14641fc51768f2ba60e1371257982ceb431b34e2 100644 (file)
  */
 
 #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);