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/state_tracker | |
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/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_atom_depth.c | 1 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_cb_bitmap.c | 1 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_cb_bufferobjects.c | 1 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_cb_clear.c | 1 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_cb_drawpixels.c | 1 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_cb_texture.c | 1 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_draw.c | 1 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_gen_mipmap.c | 1 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_glsl_to_tgsi_private.h | 9 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_manager.h | 2 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_program.c | 1 |
11 files changed, 14 insertions, 6 deletions
diff --git a/src/mesa/state_tracker/st_atom_depth.c b/src/mesa/state_tracker/st_atom_depth.c index 3b2beaf6ed7..6ddb8f525cf 100644 --- a/src/mesa/state_tracker/st_atom_depth.c +++ b/src/mesa/state_tracker/st_atom_depth.c @@ -41,7 +41,6 @@ #include "pipe/p_defines.h" #include "cso_cache/cso_context.h" -#include "main/core.h" #include "main/stencil.h" diff --git a/src/mesa/state_tracker/st_cb_bitmap.c b/src/mesa/state_tracker/st_cb_bitmap.c index c41ed2ba02b..b25ae5f80eb 100644 --- a/src/mesa/state_tracker/st_cb_bitmap.c +++ b/src/mesa/state_tracker/st_cb_bitmap.c @@ -30,6 +30,7 @@ * Brian Paul */ +#include "main/errors.h" #include "main/imports.h" #include "main/image.h" #include "main/bufferobj.h" diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.c b/src/mesa/state_tracker/st_cb_bufferobjects.c index 044916b4dc8..5ebe94f4545 100644 --- a/src/mesa/state_tracker/st_cb_bufferobjects.c +++ b/src/mesa/state_tracker/st_cb_bufferobjects.c @@ -33,6 +33,7 @@ #include <inttypes.h> /* for PRId64 macro */ +#include "main/errors.h" #include "main/imports.h" #include "main/mtypes.h" #include "main/arrayobj.h" diff --git a/src/mesa/state_tracker/st_cb_clear.c b/src/mesa/state_tracker/st_cb_clear.c index 68677182abf..fbc577a370c 100644 --- a/src/mesa/state_tracker/st_cb_clear.c +++ b/src/mesa/state_tracker/st_cb_clear.c @@ -33,6 +33,7 @@ * Michel Dänzer */ +#include "main/errors.h" #include "main/glheader.h" #include "main/accum.h" #include "main/formats.h" diff --git a/src/mesa/state_tracker/st_cb_drawpixels.c b/src/mesa/state_tracker/st_cb_drawpixels.c index 471eb196614..bb73644753a 100644 --- a/src/mesa/state_tracker/st_cb_drawpixels.c +++ b/src/mesa/state_tracker/st_cb_drawpixels.c @@ -30,6 +30,7 @@ * Brian Paul */ +#include "main/errors.h" #include "main/imports.h" #include "main/image.h" #include "main/bufferobj.h" diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index 628e4af1e67..8cc8e08a623 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -28,6 +28,7 @@ #include <stdio.h> #include "main/bufferobj.h" #include "main/enums.h" +#include "main/errors.h" #include "main/fbobject.h" #include "main/formats.h" #include "main/format_utils.h" diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c index 8011d0f25ca..6243659b50d 100644 --- a/src/mesa/state_tracker/st_draw.c +++ b/src/mesa/state_tracker/st_draw.c @@ -36,6 +36,7 @@ */ +#include "main/errors.h" #include "main/imports.h" #include "main/image.h" #include "main/bufferobj.h" diff --git a/src/mesa/state_tracker/st_gen_mipmap.c b/src/mesa/state_tracker/st_gen_mipmap.c index f2aa8005a03..3f105871a5e 100644 --- a/src/mesa/state_tracker/st_gen_mipmap.c +++ b/src/mesa/state_tracker/st_gen_mipmap.c @@ -26,6 +26,7 @@ **************************************************************************/ +#include "main/errors.h" #include "main/imports.h" #include "main/mipmap.h" #include "main/teximage.h" diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi_private.h b/src/mesa/state_tracker/st_glsl_to_tgsi_private.h index 19dde16ed91..c482828eddb 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi_private.h +++ b/src/mesa/state_tracker/st_glsl_to_tgsi_private.h @@ -26,10 +26,11 @@ #ifndef ST_GLSL_TO_TGSI_PRIVATE_H #define ST_GLSL_TO_TGSI_PRIVATE_H -#include <mesa/main/mtypes.h> -#include <compiler/glsl_types.h> -#include <compiler/glsl/ir.h> -#include <tgsi/tgsi_info.h> +#include "mesa/main/mtypes.h" +#include "program/prog_parameter.h" +#include "compiler/glsl_types.h" +#include "compiler/glsl/ir.h" +#include "tgsi/tgsi_info.h" #include <ostream> int swizzle_for_size(int size); diff --git a/src/mesa/state_tracker/st_manager.h b/src/mesa/state_tracker/st_manager.h index 1a1ea79af8e..162dcc2ca57 100644 --- a/src/mesa/state_tracker/st_manager.h +++ b/src/mesa/state_tracker/st_manager.h @@ -28,7 +28,7 @@ #ifndef ST_MANAGER_H #define ST_MANAGER_H -#include "main/mtypes.h" +#include "main/menums.h" #include "pipe/p_compiler.h" diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c index 3f8df31da18..fe72ddaf2c0 100644 --- a/src/mesa/state_tracker/st_program.c +++ b/src/mesa/state_tracker/st_program.c @@ -31,6 +31,7 @@ */ +#include "main/errors.h" #include "main/imports.h" #include "main/hash.h" #include "main/mtypes.h" |