[Mesa-dev] [PATCH 6/7] mesa: trim down includes of compiler.h

Brian Paul brianp at vmware.com
Fri Feb 27 16:47:54 PST 2015


In some cases, glheader.h is the right #include.
Also remove some instances of struct _glapi_table declarations.
---
 src/mesa/main/api_loopback.h     | 1 -
 src/mesa/main/atifragshader.h    | 3 +--
 src/mesa/main/attrib.h           | 1 -
 src/mesa/main/blit.h             | 1 -
 src/mesa/main/colortab.h         | 2 --
 src/mesa/main/convolve.h         | 2 +-
 src/mesa/main/drawpix.h          | 4 +---
 src/mesa/main/histogram.h        | 3 +--
 src/mesa/main/pixel.h            | 2 --
 src/mesa/main/rastpos.h          | 3 ++-
 src/mesa/main/remap.h            | 2 --
 src/mesa/main/texcompress_s3tc.h | 1 -
 src/mesa/main/texgen.h           | 1 -
 src/mesa/main/vtxfmt.h           | 1 -
 src/mesa/math/m_translate.h      | 1 -
 src/mesa/program/sampler.cpp     | 1 -
 16 files changed, 6 insertions(+), 23 deletions(-)

diff --git a/src/mesa/main/api_loopback.h b/src/mesa/main/api_loopback.h
index 2195e01..eb3d54b 100644
--- a/src/mesa/main/api_loopback.h
+++ b/src/mesa/main/api_loopback.h
@@ -27,7 +27,6 @@
 #ifndef API_LOOPBACK_H
 #define API_LOOPBACK_H
 
-#include "main/compiler.h"
 #include "main/glheader.h" // ?
 #include "main/macros.h" // ?
 #include "main/mtypes.h" // ?
diff --git a/src/mesa/main/atifragshader.h b/src/mesa/main/atifragshader.h
index afaea00..5901134 100644
--- a/src/mesa/main/atifragshader.h
+++ b/src/mesa/main/atifragshader.h
@@ -8,10 +8,9 @@
 #ifndef ATIFRAGSHADER_H
 #define ATIFRAGSHADER_H
 
-#include "compiler.h"
 #include "glheader.h"
 
-struct _glapi_table;
+
 struct gl_context;
 
 #define MAX_NUM_INSTRUCTIONS_PER_PASS_ATI 8
diff --git a/src/mesa/main/attrib.h b/src/mesa/main/attrib.h
index 44413a6..f4fd492 100644
--- a/src/mesa/main/attrib.h
+++ b/src/mesa/main/attrib.h
@@ -26,7 +26,6 @@
 #define ATTRIB_H
 
 
-#include "compiler.h"
 #include "glheader.h"
 
 struct _glapi_table;
diff --git a/src/mesa/main/blit.h b/src/mesa/main/blit.h
index 533d6e5..01a958a 100644
--- a/src/mesa/main/blit.h
+++ b/src/mesa/main/blit.h
@@ -26,7 +26,6 @@
 #ifndef BLIT_H
 #define BLIT_H
 
-#include "compiler.h"
 #include "glheader.h"
 
 
diff --git a/src/mesa/main/colortab.h b/src/mesa/main/colortab.h
index 55c3b59..e1165d7 100644
--- a/src/mesa/main/colortab.h
+++ b/src/mesa/main/colortab.h
@@ -26,8 +26,6 @@
 #ifndef COLORTAB_H
 #define COLORTAB_H
 
-
-#include "compiler.h"
 #include "glheader.h"
 
 struct _glapi_table;
diff --git a/src/mesa/main/convolve.h b/src/mesa/main/convolve.h
index 0c0a9dd..e696ce4 100644
--- a/src/mesa/main/convolve.h
+++ b/src/mesa/main/convolve.h
@@ -28,7 +28,7 @@
 #define CONVOLVE_H
 
 
-#include "compiler.h"
+#include "glheader.h"
 
 struct _glapi_table;
 
diff --git a/src/mesa/main/drawpix.h b/src/mesa/main/drawpix.h
index eb2cb89..181c05c 100644
--- a/src/mesa/main/drawpix.h
+++ b/src/mesa/main/drawpix.h
@@ -26,9 +26,7 @@
 #define DRAWPIX_H
 
 
-#include "compiler.h"
-
-struct _glapi_table;
+#include "glheader.h"
 
 
 void GLAPIENTRY
diff --git a/src/mesa/main/histogram.h b/src/mesa/main/histogram.h
index 1d145a0..47a2bf0 100644
--- a/src/mesa/main/histogram.h
+++ b/src/mesa/main/histogram.h
@@ -36,9 +36,8 @@
 #ifndef HISTOGRAM_H
 #define HISTOGRAM_H
 
-#include "compiler.h"
+#include "glheader.h"
 
-struct _glapi_table;
 
 void GLAPIENTRY
 _mesa_GetnMinmaxARB(GLenum target, GLboolean reset, GLenum format,
diff --git a/src/mesa/main/pixel.h b/src/mesa/main/pixel.h
index c12ef97..fd1782e 100644
--- a/src/mesa/main/pixel.h
+++ b/src/mesa/main/pixel.h
@@ -33,10 +33,8 @@
 #define PIXEL_H
 
 
-#include "compiler.h"
 #include "glheader.h"
 
-struct _glapi_table;
 struct gl_context;
 
 
diff --git a/src/mesa/main/rastpos.h b/src/mesa/main/rastpos.h
index 2d36936..dc28c68 100644
--- a/src/mesa/main/rastpos.h
+++ b/src/mesa/main/rastpos.h
@@ -32,7 +32,8 @@
 #define RASTPOS_H
 
 
-#include "compiler.h"
+#include "glheader.h"
+
 
 struct _glapi_table;
 struct gl_context;
diff --git a/src/mesa/main/remap.h b/src/mesa/main/remap.h
index 7199169..9d91b83 100644
--- a/src/mesa/main/remap.h
+++ b/src/mesa/main/remap.h
@@ -27,8 +27,6 @@
 #define REMAP_H
 
 
-#include "main/compiler.h"
-
 struct gl_function_pool_remap {
    int pool_index;
    int remap_index;
diff --git a/src/mesa/main/texcompress_s3tc.h b/src/mesa/main/texcompress_s3tc.h
index 2734210..438b71f 100644
--- a/src/mesa/main/texcompress_s3tc.h
+++ b/src/mesa/main/texcompress_s3tc.h
@@ -25,7 +25,6 @@
 #ifndef TEXCOMPRESS_S3TC_H
 #define TEXCOMPRESS_S3TC_H
 
-#include "compiler.h"
 #include "glheader.h"
 #include "texstore.h"
 #include "texcompress.h"
diff --git a/src/mesa/main/texgen.h b/src/mesa/main/texgen.h
index aad5d2e..84adfc0 100644
--- a/src/mesa/main/texgen.h
+++ b/src/mesa/main/texgen.h
@@ -27,7 +27,6 @@
 #define TEXGEN_H
 
 
-#include "compiler.h"
 #include "glheader.h"
 
 struct _glapi_table;
diff --git a/src/mesa/main/vtxfmt.h b/src/mesa/main/vtxfmt.h
index 34ade89..efccd90 100644
--- a/src/mesa/main/vtxfmt.h
+++ b/src/mesa/main/vtxfmt.h
@@ -33,7 +33,6 @@
 #ifndef _VTXFMT_H_
 #define _VTXFMT_H_
 
-#include "compiler.h"
 #include "mtypes.h"
 
 extern void _mesa_install_exec_vtxfmt( struct gl_context *ctx, const GLvertexformat *vfmt );
diff --git a/src/mesa/math/m_translate.h b/src/mesa/math/m_translate.h
index bdfa4c7..62f676c 100644
--- a/src/mesa/math/m_translate.h
+++ b/src/mesa/math/m_translate.h
@@ -26,7 +26,6 @@
 #ifndef _M_TRANSLATE_H_
 #define _M_TRANSLATE_H_
 
-#include "main/compiler.h"
 #include "main/glheader.h"
 
 /**
diff --git a/src/mesa/program/sampler.cpp b/src/mesa/program/sampler.cpp
index f8584c9..ea3024d 100644
--- a/src/mesa/program/sampler.cpp
+++ b/src/mesa/program/sampler.cpp
@@ -29,7 +29,6 @@
 #include "../glsl/program.h"
 #include "ir_uniform.h"
 
-#include "main/compiler.h"
 #include "main/mtypes.h"
 #include "program/hash_table.h"
 #include "program/prog_parameter.h"
-- 
1.9.1



More information about the mesa-dev mailing list