summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-22 20:18:51 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-22 20:18:51 +0100
commit924115bfcd5beae84f2e2d6b266c619659185475 (patch)
tree7fe44f293b033dd9917b200514d21213da6332ab
parent6cfcd715898198cbd8edd955ed24cf57f6e8d9ee (diff)
lib: more unecessary header removal
This time big with media_fill.h Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--lib/igt_core.h3
-rw-r--r--lib/igt_kms.h1
-rw-r--r--lib/intel_batchbuffer.h2
-rw-r--r--lib/media_fill.h16
-rw-r--r--lib/media_fill_gen7.c3
-rw-r--r--lib/media_fill_gen8.c3
-rw-r--r--tests/kms_cursor_crc.c1
-rw-r--r--tests/kms_pipe_crc_basic.c1
-rw-r--r--tests/kms_plane.c1
9 files changed, 14 insertions, 17 deletions
diff --git a/lib/igt_core.h b/lib/igt_core.h
index c21448e7..47576da6 100644
--- a/lib/igt_core.h
+++ b/lib/igt_core.h
@@ -30,7 +30,10 @@
#ifndef IGT_CORE_H
#define IGT_CORE_H
+#include <setjmp.h>
#include <stdbool.h>
+#include <string.h>
+#include <sys/types.h>
bool __igt_fixture(void);
void __igt_fixture_complete(void);
diff --git a/lib/igt_kms.h b/lib/igt_kms.h
index 6590fd58..d141cfce 100644
--- a/lib/igt_kms.h
+++ b/lib/igt_kms.h
@@ -27,7 +27,6 @@
#include <stdbool.h>
#include <stdint.h>
-#include <drm_fourcc.h>
#include <cairo.h>
#include "igt_display.h"
diff --git a/lib/intel_batchbuffer.h b/lib/intel_batchbuffer.h
index 244bdbda..e11281a3 100644
--- a/lib/intel_batchbuffer.h
+++ b/lib/intel_batchbuffer.h
@@ -2,7 +2,7 @@
#define INTEL_BATCHBUFFER_H
#include <stdint.h>
-#include "intel_bufmgr.h"
+#include <intel_bufmgr.h>
#include "igt_core.h"
#include "intel_reg.h"
diff --git a/lib/media_fill.h b/lib/media_fill.h
index 3568cf60..d417c75a 100644
--- a/lib/media_fill.h
+++ b/lib/media_fill.h
@@ -1,22 +1,8 @@
#ifndef RENDE_MEDIA_FILL_H
#define RENDE_MEDIA_FILL_H
-#include <stdlib.h>
-#include <sys/ioctl.h>
-#include <stdio.h>
-#include <string.h>
-#include <fcntl.h>
-#include <inttypes.h>
-#include <errno.h>
-#include <sys/stat.h>
-#include <sys/time.h>
-#include <getopt.h>
-#include "drm.h"
-#include "i915_drm.h"
-#include "drmtest.h"
-#include "intel_bufmgr.h"
+#include <stdint.h>
#include "intel_batchbuffer.h"
-#include "intel_gpu_tools.h"
void
gen8_media_fillfunc(struct intel_batchbuffer *batch,
diff --git a/lib/media_fill_gen7.c b/lib/media_fill_gen7.c
index 7494d44d..cdf4b603 100644
--- a/lib/media_fill_gen7.c
+++ b/lib/media_fill_gen7.c
@@ -1,3 +1,6 @@
+#include <intel_bufmgr.h>
+#include <i915_drm.h>
+
#include "media_fill.h"
#include "gen7_media.h"
#include "intel_reg.h"
diff --git a/lib/media_fill_gen8.c b/lib/media_fill_gen8.c
index d65d2608..996d4d02 100644
--- a/lib/media_fill_gen8.c
+++ b/lib/media_fill_gen8.c
@@ -1,3 +1,6 @@
+#include <intel_bufmgr.h>
+#include <i915_drm.h>
+
#include "media_fill.h"
#include "gen8_media.h"
#include "intel_reg.h"
diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c
index f95448f4..f87fe0ba 100644
--- a/tests/kms_cursor_crc.c
+++ b/tests/kms_cursor_crc.c
@@ -27,6 +27,7 @@
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
+#include <drm_fourcc.h>
#include "drmtest.h"
#include "igt_debugfs.h"
diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c
index 75217df4..ef3ab408 100644
--- a/tests/kms_pipe_crc_basic.c
+++ b/tests/kms_pipe_crc_basic.c
@@ -26,6 +26,7 @@
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
+#include <drm_fourcc.h>
#include "drmtest.h"
#include "igt_debugfs.h"
diff --git a/tests/kms_plane.c b/tests/kms_plane.c
index 223f0a77..83d45c54 100644
--- a/tests/kms_plane.c
+++ b/tests/kms_plane.c
@@ -28,6 +28,7 @@
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
+#include <drm_fourcc.h>
#include "drmtest.h"
#include "igt_debugfs.h"