diff options
author | Marek Olšák <[email protected]> | 2018-04-08 13:13:08 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-04-12 19:31:30 -0400 |
commit | 43d66c8c2d4d3d4dee1309856b6ce6c5393682e5 (patch) | |
tree | 1d2ffdca4a8cf765e8db3c71e491df6611c45556 /src/mesa/vbo | |
parent | 57f4268da49ce6969e597fe3441d6a9cd8bac562 (diff) |
mesa: include mtypes.h less
- remove mtypes.h from most header files
- add main/menums.h for often used definitions
- remove main/core.h
v2: fix radv build
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/vbo')
-rw-r--r-- | src/mesa/vbo/vbo_attrib.h | 2 | ||||
-rw-r--r-- | src/mesa/vbo/vbo_context.c | 2 | ||||
-rw-r--r-- | src/mesa/vbo/vbo_exec.c | 1 | ||||
-rw-r--r-- | src/mesa/vbo/vbo_exec.h | 3 | ||||
-rw-r--r-- | src/mesa/vbo/vbo_noop.h | 4 | ||||
-rw-r--r-- | src/mesa/vbo/vbo_primitive_restart.c | 1 | ||||
-rw-r--r-- | src/mesa/vbo/vbo_private.h | 1 | ||||
-rw-r--r-- | src/mesa/vbo/vbo_save.c | 1 | ||||
-rw-r--r-- | src/mesa/vbo/vbo_save.h | 1 | ||||
-rw-r--r-- | src/mesa/vbo/vbo_save_draw.c | 1 | ||||
-rw-r--r-- | src/mesa/vbo/vbo_save_loopback.c | 1 |
11 files changed, 5 insertions, 13 deletions
diff --git a/src/mesa/vbo/vbo_attrib.h b/src/mesa/vbo/vbo_attrib.h index 0592d845ba4..165734b30a6 100644 --- a/src/mesa/vbo/vbo_attrib.h +++ b/src/mesa/vbo/vbo_attrib.h @@ -32,8 +32,6 @@ #ifndef VBO_ATTRIB_H #define VBO_ATTRIB_H -#include "main/mtypes.h" - /* * Note: The first 32 attributes match the VERT_ATTRIB_* definitions. * However, we have extra attributes for storing per-vertex glMaterial diff --git a/src/mesa/vbo/vbo_context.c b/src/mesa/vbo/vbo_context.c index f698fd0f416..ada78ffd63b 100644 --- a/src/mesa/vbo/vbo_context.c +++ b/src/mesa/vbo/vbo_context.c @@ -26,7 +26,7 @@ */ #include "c99_alloca.h" -#include "main/mtypes.h" +#include "main/errors.h" #include "main/bufferobj.h" #include "math/m_eval.h" #include "main/vtxfmt.h" diff --git a/src/mesa/vbo/vbo_exec.c b/src/mesa/vbo/vbo_exec.c index b23747aa393..357ec1da767 100644 --- a/src/mesa/vbo/vbo_exec.c +++ b/src/mesa/vbo/vbo_exec.c @@ -28,7 +28,6 @@ #include "main/glheader.h" #include "main/arrayobj.h" -#include "main/mtypes.h" #include "main/api_arrayelt.h" #include "main/vtxfmt.h" #include "vbo_private.h" diff --git a/src/mesa/vbo/vbo_exec.h b/src/mesa/vbo/vbo_exec.h index 853fc68c963..1170883f871 100644 --- a/src/mesa/vbo/vbo_exec.h +++ b/src/mesa/vbo/vbo_exec.h @@ -34,8 +34,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. #ifndef VBO_EXEC_H #define VBO_EXEC_H - -#include "main/mtypes.h" +#include "main/dd.h" #include "main/imports.h" #include "vbo.h" #include "vbo_attrib.h" diff --git a/src/mesa/vbo/vbo_noop.h b/src/mesa/vbo/vbo_noop.h index 8aa17ce9ede..0ca1bfa8e1b 100644 --- a/src/mesa/vbo/vbo_noop.h +++ b/src/mesa/vbo/vbo_noop.h @@ -26,9 +26,9 @@ #ifndef VBO_NOOP_H #define VBO_NOOP_H +#include "main/dd.h" -#include "main/mtypes.h" - +struct _glapi_table; extern void _mesa_noop_vtxfmt_init(GLvertexformat *vfmt); diff --git a/src/mesa/vbo/vbo_primitive_restart.c b/src/mesa/vbo/vbo_primitive_restart.c index f170347fbe4..a3c65f422ba 100644 --- a/src/mesa/vbo/vbo_primitive_restart.c +++ b/src/mesa/vbo/vbo_primitive_restart.c @@ -28,6 +28,7 @@ * */ +#include "main/errors.h" #include "main/imports.h" #include "main/macros.h" #include "main/varray.h" diff --git a/src/mesa/vbo/vbo_private.h b/src/mesa/vbo/vbo_private.h index 7cc64ecdbcf..589c61d675e 100644 --- a/src/mesa/vbo/vbo_private.h +++ b/src/mesa/vbo/vbo_private.h @@ -35,7 +35,6 @@ #include "vbo/vbo_attrib.h" #include "vbo/vbo_exec.h" #include "vbo/vbo_save.h" -#include "main/mtypes.h" #include "main/varray.h" diff --git a/src/mesa/vbo/vbo_save.c b/src/mesa/vbo/vbo_save.c index 361964195c3..73bc49a24bf 100644 --- a/src/mesa/vbo/vbo_save.c +++ b/src/mesa/vbo/vbo_save.c @@ -26,7 +26,6 @@ */ -#include "main/mtypes.h" #include "main/arrayobj.h" #include "main/bufferobj.h" diff --git a/src/mesa/vbo/vbo_save.h b/src/mesa/vbo/vbo_save.h index b158c077957..2a1922461dd 100644 --- a/src/mesa/vbo/vbo_save.h +++ b/src/mesa/vbo/vbo_save.h @@ -34,7 +34,6 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. #ifndef VBO_SAVE_H #define VBO_SAVE_H -#include "main/mtypes.h" #include "vbo.h" #include "vbo_attrib.h" diff --git a/src/mesa/vbo/vbo_save_draw.c b/src/mesa/vbo/vbo_save_draw.c index 096e43c8169..f4b2c807480 100644 --- a/src/mesa/vbo/vbo_save_draw.c +++ b/src/mesa/vbo/vbo_save_draw.c @@ -32,7 +32,6 @@ #include "main/bufferobj.h" #include "main/context.h" #include "main/imports.h" -#include "main/mtypes.h" #include "main/macros.h" #include "main/light.h" #include "main/state.h" diff --git a/src/mesa/vbo/vbo_save_loopback.c b/src/mesa/vbo/vbo_save_loopback.c index f1a93d6e434..36b1f71eb5f 100644 --- a/src/mesa/vbo/vbo_save_loopback.c +++ b/src/mesa/vbo/vbo_save_loopback.c @@ -30,7 +30,6 @@ #include "main/glheader.h" #include "main/enums.h" #include "main/imports.h" -#include "main/mtypes.h" #include "main/dispatch.h" #include "glapi/glapi.h" |