From b0a1e401a93b7b13870b936bc667b3fc15dba6d5 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 19 Aug 2014 10:34:15 -0700 Subject: [PATCH] vc4: Include stdio/stdlib in headers so I don't have to include it per file. There are a few tools I want to have always available, and fprintf() and abort() are among them. --- src/gallium/drivers/vc4/vc4_bufmgr.c | 1 - src/gallium/drivers/vc4/vc4_context.c | 1 - src/gallium/drivers/vc4/vc4_context.h | 2 ++ src/gallium/drivers/vc4/vc4_draw.c | 2 -- src/gallium/drivers/vc4/vc4_opt_algebraic.c | 1 - src/gallium/drivers/vc4/vc4_opt_copy_propagation.c | 2 -- src/gallium/drivers/vc4/vc4_opt_dead_code.c | 2 -- src/gallium/drivers/vc4/vc4_program.c | 1 - src/gallium/drivers/vc4/vc4_qir.c | 2 -- src/gallium/drivers/vc4/vc4_qir.h | 2 ++ src/gallium/drivers/vc4/vc4_qpu_emit.c | 1 - src/gallium/drivers/vc4/vc4_resource.c | 2 -- src/gallium/drivers/vc4/vc4_screen.c | 2 -- src/gallium/drivers/vc4/vc4_simulator.c | 2 -- src/gallium/drivers/vc4/vc4_state.c | 2 -- 15 files changed, 4 insertions(+), 21 deletions(-) diff --git a/src/gallium/drivers/vc4/vc4_bufmgr.c b/src/gallium/drivers/vc4/vc4_bufmgr.c index a87cdfa9fd4..6d622c063d6 100644 --- a/src/gallium/drivers/vc4/vc4_bufmgr.c +++ b/src/gallium/drivers/vc4/vc4_bufmgr.c @@ -23,7 +23,6 @@ #include #include -#include #include #include #include diff --git a/src/gallium/drivers/vc4/vc4_context.c b/src/gallium/drivers/vc4/vc4_context.c index 1ffaab12765..5d698a84798 100644 --- a/src/gallium/drivers/vc4/vc4_context.c +++ b/src/gallium/drivers/vc4/vc4_context.c @@ -23,7 +23,6 @@ #include #include -#include #include "pipe/p_defines.h" #include "util/u_inlines.h" diff --git a/src/gallium/drivers/vc4/vc4_context.h b/src/gallium/drivers/vc4/vc4_context.h index 641609b65e9..258852e2743 100644 --- a/src/gallium/drivers/vc4/vc4_context.h +++ b/src/gallium/drivers/vc4/vc4_context.h @@ -25,6 +25,8 @@ #ifndef VC4_CONTEXT_H #define VC4_CONTEXT_H +#include + #include "pipe/p_context.h" #include "pipe/p_state.h" #include "util/u_slab.h" diff --git a/src/gallium/drivers/vc4/vc4_draw.c b/src/gallium/drivers/vc4/vc4_draw.c index 3f19862f5ea..cf3fc03d222 100644 --- a/src/gallium/drivers/vc4/vc4_draw.c +++ b/src/gallium/drivers/vc4/vc4_draw.c @@ -22,8 +22,6 @@ * IN THE SOFTWARE. */ -#include - #include "util/u_format.h" #include "util/u_pack_color.h" #include "indices/u_primconvert.h" diff --git a/src/gallium/drivers/vc4/vc4_opt_algebraic.c b/src/gallium/drivers/vc4/vc4_opt_algebraic.c index 84e0515d1cf..2bf474ccef9 100644 --- a/src/gallium/drivers/vc4/vc4_opt_algebraic.c +++ b/src/gallium/drivers/vc4/vc4_opt_algebraic.c @@ -32,7 +32,6 @@ * later be copy-propagated out. */ -#include #include "vc4_qir.h" bool diff --git a/src/gallium/drivers/vc4/vc4_opt_copy_propagation.c b/src/gallium/drivers/vc4/vc4_opt_copy_propagation.c index dc4b5bc3c38..4f17a2777d9 100644 --- a/src/gallium/drivers/vc4/vc4_opt_copy_propagation.c +++ b/src/gallium/drivers/vc4/vc4_opt_copy_propagation.c @@ -32,8 +32,6 @@ * there's no killing to worry about. */ -#include -#include #include "vc4_qir.h" bool diff --git a/src/gallium/drivers/vc4/vc4_opt_dead_code.c b/src/gallium/drivers/vc4/vc4_opt_dead_code.c index 26e4ddfd233..4ceaf6ba14a 100644 --- a/src/gallium/drivers/vc4/vc4_opt_dead_code.c +++ b/src/gallium/drivers/vc4/vc4_opt_dead_code.c @@ -31,8 +31,6 @@ * instructions as used. */ -#include -#include #include "vc4_qir.h" bool diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c index c6a6a2e0c22..8907cc65ea1 100644 --- a/src/gallium/drivers/vc4/vc4_program.c +++ b/src/gallium/drivers/vc4/vc4_program.c @@ -22,7 +22,6 @@ * IN THE SOFTWARE. */ -#include #include #include "pipe/p_state.h" #include "util/u_format.h" diff --git a/src/gallium/drivers/vc4/vc4_qir.c b/src/gallium/drivers/vc4/vc4_qir.c index 0911e4e326d..aa1f40b1162 100644 --- a/src/gallium/drivers/vc4/vc4_qir.c +++ b/src/gallium/drivers/vc4/vc4_qir.c @@ -21,8 +21,6 @@ * IN THE SOFTWARE. */ -#include - #include "util/u_memory.h" #include "util/u_simple_list.h" diff --git a/src/gallium/drivers/vc4/vc4_qir.h b/src/gallium/drivers/vc4/vc4_qir.h index e205a533385..9277d4abc54 100644 --- a/src/gallium/drivers/vc4/vc4_qir.h +++ b/src/gallium/drivers/vc4/vc4_qir.h @@ -24,6 +24,8 @@ #ifndef VC4_QIR_H #define VC4_QIR_H +#include +#include #include #include diff --git a/src/gallium/drivers/vc4/vc4_qpu_emit.c b/src/gallium/drivers/vc4/vc4_qpu_emit.c index 4e8a6b2d8e9..43491019855 100644 --- a/src/gallium/drivers/vc4/vc4_qpu_emit.c +++ b/src/gallium/drivers/vc4/vc4_qpu_emit.c @@ -21,7 +21,6 @@ * IN THE SOFTWARE. */ -#include #include #include "vc4_context.h" diff --git a/src/gallium/drivers/vc4/vc4_resource.c b/src/gallium/drivers/vc4/vc4_resource.c index 349837e9824..c2978c0433a 100644 --- a/src/gallium/drivers/vc4/vc4_resource.c +++ b/src/gallium/drivers/vc4/vc4_resource.c @@ -22,8 +22,6 @@ * IN THE SOFTWARE. */ -#include - #include "util/u_memory.h" #include "util/u_format.h" #include "util/u_inlines.h" diff --git a/src/gallium/drivers/vc4/vc4_screen.c b/src/gallium/drivers/vc4/vc4_screen.c index 4a86e21169d..feff50c4b05 100644 --- a/src/gallium/drivers/vc4/vc4_screen.c +++ b/src/gallium/drivers/vc4/vc4_screen.c @@ -22,8 +22,6 @@ * IN THE SOFTWARE. */ -#include - #include "os/os_misc.h" #include "pipe/p_defines.h" #include "pipe/p_screen.h" diff --git a/src/gallium/drivers/vc4/vc4_simulator.c b/src/gallium/drivers/vc4/vc4_simulator.c index cedd401d47a..416a201b40f 100644 --- a/src/gallium/drivers/vc4/vc4_simulator.c +++ b/src/gallium/drivers/vc4/vc4_simulator.c @@ -23,8 +23,6 @@ #ifdef USE_VC4_SIMULATOR -#include - #include "util/u_memory.h" #include "vc4_screen.h" diff --git a/src/gallium/drivers/vc4/vc4_state.c b/src/gallium/drivers/vc4/vc4_state.c index d2c53a5b8eb..58c300e6549 100644 --- a/src/gallium/drivers/vc4/vc4_state.c +++ b/src/gallium/drivers/vc4/vc4_state.c @@ -22,8 +22,6 @@ * IN THE SOFTWARE. */ -#include - #include "pipe/p_state.h" #include "util/u_inlines.h" #include "util/u_math.h" -- 2.30.2