lib: add missing includes to headers

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Thomas Wood 2014-06-16 16:21:35 +01:00 committed by Daniel Vetter
parent 5874daddc4
commit d96490af99
6 changed files with 12 additions and 0 deletions

View File

@ -28,6 +28,9 @@
#ifndef _DEBUG_H_ #ifndef _DEBUG_H_
#define _DEBUG_H_ #define _DEBUG_H_
#include <stdint.h>
#include <stdio.h>
#define DEBUG_PROTOCOL_VERSION 1 #define DEBUG_PROTOCOL_VERSION 1
#define COMMUNICATION_OFFSET 0xc00 #define COMMUNICATION_OFFSET 0xc00
#define COMMUNICATION_QWORD 0xc0 #define COMMUNICATION_QWORD 0xc0

View File

@ -1,6 +1,8 @@
#ifndef GEN7_RENDER_H #ifndef GEN7_RENDER_H
#define GEN7_RENDER_H #define GEN7_RENDER_H
#include <stdint.h>
#define INTEL_MASK(high, low) (((1 << ((high) - (low) + 1)) - 1) << (low)) #define INTEL_MASK(high, low) (((1 << ((high) - (low) + 1)) - 1) << (low))
#define GEN7_3D(Pipeline,Opcode,Subopcode) ((3 << 29) | \ #define GEN7_3D(Pipeline,Opcode,Subopcode) ((3 << 29) | \

View File

@ -29,6 +29,7 @@
#define IGT_AUX_H #define IGT_AUX_H
#include <intel_bufmgr.h> #include <intel_bufmgr.h>
#include <stdbool.h>
/* auxialiary igt helpers from igt_aux.c */ /* auxialiary igt helpers from igt_aux.c */
/* generally useful helpers */ /* generally useful helpers */

View File

@ -36,6 +36,8 @@ typedef struct _cairo_surface cairo_surface_t;
typedef struct _cairo cairo_t; typedef struct _cairo cairo_t;
#endif #endif
#include <stddef.h>
#include <stdbool.h>
#include <drm_fourcc.h> #include <drm_fourcc.h>
#include <xf86drmMode.h> #include <xf86drmMode.h>

View File

@ -30,6 +30,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <stddef.h>
#include <xf86drmMode.h> #include <xf86drmMode.h>

View File

@ -1,3 +1,6 @@
#include "intel_batchbuffer.h"
static inline void emit_vertex_2s(struct intel_batchbuffer *batch, static inline void emit_vertex_2s(struct intel_batchbuffer *batch,
int16_t x, int16_t y) int16_t x, int16_t y)
{ {