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 17b8b4b97c9f1fdf863e832bcd3b21325b54a63a..d74caa959ccefd9fe1b25908da4950ba167410b6 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 5e04417c0f3a66168b8d4d97df9e7f605dd8ee2c..e82df0169694ac5fe88a339c89801bfa943192a9 100644 (file)
@@ -26,6 +26,7 @@
  */
 
 #include "nir.h"
+#include "main/config.h"
 #include <assert.h>
 
 /*
index 90346c975c1faf3eb4adbb8c339fd4b167b2b333..328d4f1abc0a94cada6f82ce380a28c926d79657 100644 (file)
@@ -26,6 +26,7 @@
  */
 
 #include "nir.h"
+#include "main/mtypes.h"
 
 static void
 convert_instr(nir_intrinsic_instr *instr)