summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-08-19 10:34:15 -0700
committerEric Anholt <[email protected]>2014-08-22 10:16:57 -0700
commitb0a1e401a93b7b13870b936bc667b3fc15dba6d5 (patch)
tree7b9fbc09c08b2e6b14cbdb2a5a367b756f8f5619
parentd77f5603a5de26e66561ec003118bbfb1a07666b (diff)
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.
-rw-r--r--src/gallium/drivers/vc4/vc4_bufmgr.c1
-rw-r--r--src/gallium/drivers/vc4/vc4_context.c1
-rw-r--r--src/gallium/drivers/vc4/vc4_context.h2
-rw-r--r--src/gallium/drivers/vc4/vc4_draw.c2
-rw-r--r--src/gallium/drivers/vc4/vc4_opt_algebraic.c1
-rw-r--r--src/gallium/drivers/vc4/vc4_opt_copy_propagation.c2
-rw-r--r--src/gallium/drivers/vc4/vc4_opt_dead_code.c2
-rw-r--r--src/gallium/drivers/vc4/vc4_program.c1
-rw-r--r--src/gallium/drivers/vc4/vc4_qir.c2
-rw-r--r--src/gallium/drivers/vc4/vc4_qir.h2
-rw-r--r--src/gallium/drivers/vc4/vc4_qpu_emit.c1
-rw-r--r--src/gallium/drivers/vc4/vc4_resource.c2
-rw-r--r--src/gallium/drivers/vc4/vc4_screen.c2
-rw-r--r--src/gallium/drivers/vc4/vc4_simulator.c2
-rw-r--r--src/gallium/drivers/vc4/vc4_state.c2
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 <errno.h>
#include <err.h>
-#include <stdio.h>
#include <sys/mman.h>
#include <xf86drm.h>
#include <xf86drmMode.h>
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 <xf86drm.h>
#include <err.h>
-#include <stdio.h>
#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 <stdio.h>
+
#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 <stdio.h>
-
#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 <stdio.h>
#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 <stdlib.h>
-#include <stdio.h>
#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 <stdio.h>
-#include <stdlib.h>
#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 <stdio.h>
#include <inttypes.h>
#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 <stdio.h>
-
#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 <stdio.h>
+#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
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 <stdio.h>
#include <inttypes.h>
#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 <stdio.h>
-
#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 <stdio.h>
-
#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 <stdio.h>
-
#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 <stdio.h>
-
#include "pipe/p_state.h"
#include "util/u_inlines.h"
#include "util/u_math.h"