lib: add missing includes to headers
PATCH 1/1 lib: add missing includes to headers
Signed-off-by Thomas Wood <[email protected]>
--- lib/debug.h | 3 +++ lib/gen7_render.h | 2 ++ lib/igt_aux.h | 1 + lib/igt_fb.h | 2 ++ lib/igt_kms.h | 1 + lib/rendercopy.h | 3 +++ 6 files changed, 12 insertions(+)
lib/debug.h +3 -0
@@ -28,6 +28,9 @@#ifndef _DEBUG_H_#define _DEBUG_H_ +#include <stdint.h> +#include <stdio.h> +#define DEBUG_PROTOCOL_VERSION 1#define COMMUNICATION_OFFSET 0xc00#define COMMUNICATION_QWORD 0xc0
lib/gen7_render.h +2 -0
@@ -1,6 +1,8 @@#ifndef GEN7_RENDER_H #define GEN7_RENDER_H +#include <stdint.h> +#define INTEL_MASK (high, low) (((1 << ((high) - (low) + 1)) - 1) << (low))#define GEN7_3D (Pipeline,Opcode,Subopcode) ((3 << 29) | \
lib/igt_aux.h +1 -0
@@ -29,6 +29,7 @@#define IGT_AUX_H #include <intel_bufmgr.h> +#include <stdbool.h> /* auxialiary igt helpers from igt_aux.c */ /* generally useful helpers */
lib/igt_fb.h +2 -0
@@ -36,6 +36,8 @@ typedef struct _cairo_surface cairo_surface_t;typedef struct _cairo cairo_t ;#endif +#include <stddef.h> +#include <stdbool.h> #include <drm_fourcc.h> #include <xf86drmMode.h>
lib/igt_kms.h +1 -0
@@ -30,6 +30,7 @@#include <stdbool.h> #include <stdint.h> +#include <stddef.h> #include <xf86drmMode.h>
lib/rendercopy.h +3 -0
@@ -1,3 +1,6 @@ +#include "intel_batchbuffer.h" + +static inline void emit_vertex_2s (struct intel_batchbuffer *batch,int16_t x,int16_t y) {
Signature · 1 line
1.9.3
Quoted 1 line · Thomas Wood
Signed-off-by Thomas Wood <[email protected]>
Both igt patches merged, thanks.
-Daniel
Quoted 91 lines
--- lib/debug.h | 3 +++ lib/gen7_render.h | 2 ++ lib/igt_aux.h | 1 + lib/igt_fb.h | 2 ++ lib/igt_kms.h | 1 + lib/rendercopy.h | 3 +++ 6 files changed, 12 insertions(+)lib/debug.h +3
-0@@ -28,6 +28,9 @@#ifndef _DEBUG_H_#define _DEBUG_H_ +#include <stdint.h> +#include <stdio.h> +#define DEBUG_PROTOCOL_VERSION 1#define COMMUNICATION_OFFSET 0xc00#define COMMUNICATION_QWORD 0xc0lib/gen7_render.h +2
-0@@ -1,6 +1,8 @@#ifndef GEN7_RENDER_H #define GEN7_RENDER_H +#include <stdint.h> +#define INTEL_MASK (high, low) (((1 << ((high) - (low) + 1)) - 1) << (low))#define GEN7_3D (Pipeline,Opcode,Subopcode) ((3 << 29) | \lib/igt_aux.h +1
-0@@ -29,6 +29,7 @@#define IGT_AUX_H #include <intel_bufmgr.h> +#include <stdbool.h> /* auxialiary igt helpers from igt_aux.c */ /* generally useful helpers */ lib/igt_fb.h +2
-0@@ -36,6 +36,8 @@ typedef struct _cairo_surface cairo_surface_t;typedef struct _cairo cairo_t ;#endif +#include <stddef.h> +#include <stdbool.h> #include <drm_fourcc.h> #include <xf86drmMode.h> lib/igt_kms.h +1
-0@@ -30,6 +30,7 @@#include <stdbool.h> #include <stdint.h> +#include <stddef.h> #include <xf86drmMode.h> lib/rendercopy.h +3
-0@@ -1,3 +1,6 @@ +#include "intel_batchbuffer.h" + +static inline void emit_vertex_2s (struct intel_batchbuffer *batch,int16_t x,int16_t y) {Signature · 6 lines
1.9.3 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch