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 <robclark@freedesktop.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Rob Clark
2016-05-14 13:35:54 -04:00
parent 79d6409a14
commit f06343d6ea

View File

@@ -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);