nir: Drop dependency on mtypes.h for core NIR.
authorEric Anholt <eric@anholt.net>
Wed, 11 Feb 2015 23:08:02 +0000 (15:08 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 20 Feb 2015 19:36:34 +0000 (11:36 -0800)
One less new directory necessary for gallium code that wants to interact
with NIR.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/glsl/nir/nir.h
src/glsl/nir/nir_lower_atomics.c
src/glsl/nir/nir_lower_system_values.c

index 17b8b4b..d74caa9 100644 (file)
@@ -32,7 +32,6 @@
 #include "GL/gl.h" /* GLenum */
 #include "util/ralloc.h"
 #include "util/set.h"
-#include "main/mtypes.h"
 #include "util/bitset.h"
 #include "nir_types.h"
 #include <stdio.h>
@@ -43,6 +42,9 @@
 extern "C" {
 #endif
 
+struct gl_program;
+struct gl_shader_program;
+
 #define NIR_FALSE 0u
 #define NIR_TRUE (~0u)
 
index 5e04417..e82df01 100644 (file)
@@ -26,6 +26,7 @@
  */
 
 #include "nir.h"
+#include "main/config.h"
 #include <assert.h>
 
 /*
index 90346c9..328d4f1 100644 (file)
@@ -26,6 +26,7 @@
  */
 
 #include "nir.h"
+#include "main/mtypes.h"
 
 static void
 convert_instr(nir_intrinsic_instr *instr)