Avoid depending on va_backend.h for some files
authorXiang, Haihao <haihao.xiang@intel.com>
Thu, 29 Dec 2011 08:27:24 +0000 (16:27 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 10 Jan 2012 07:00:02 +0000 (15:00 +0800)
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
src/gen6_mfd.c
src/gen6_vme.c
src/gen7_mfd.c
src/i965_encoder.c
src/i965_media.c
src/i965_media_mpeg2.c
src/i965_post_processing.c
src/i965_render.c
src/intel_batchbuffer.c
src/intel_driver.h

index 92cbce9..a38360b 100644 (file)
@@ -31,8 +31,6 @@
 #include <string.h>
 #include <assert.h>
 
-#include <va/va_backend.h>
-
 #include "intel_batchbuffer.h"
 #include "intel_driver.h"
 
index 09a042f..2ffbd43 100644 (file)
@@ -30,8 +30,6 @@
 #include <string.h>
 #include <assert.h>
 
-#include <va/va_backend.h>
-
 #include "intel_batchbuffer.h"
 #include "intel_driver.h"
 
index 9308999..07cc0c9 100644 (file)
@@ -31,8 +31,6 @@
 #include <string.h>
 #include <assert.h>
 
-#include <va/va_backend.h>
-
 #include "intel_batchbuffer.h"
 #include "intel_driver.h"
 
index 0b1efef..29f8de2 100644 (file)
@@ -31,8 +31,6 @@
 #include <string.h>
 #include <assert.h>
 
-#include <va/va_backend.h>
-
 #include "intel_batchbuffer.h"
 #include "intel_driver.h"
 
index d6a56d2..771f38f 100644 (file)
@@ -32,8 +32,6 @@
 #include <string.h>
 #include <assert.h>
 
-#include <va/va_backend.h>
-
 #include "intel_batchbuffer.h"
 #include "intel_driver.h"
 #include "i965_defines.h"
index 15edc5b..1d87d9b 100644 (file)
@@ -32,8 +32,6 @@
 #include <string.h>
 #include <assert.h>
 
-#include <va/va_backend.h>
-
 #include "intel_batchbuffer.h"
 #include "intel_driver.h"
 #include "i965_defines.h"
index 4201d09..090403c 100644 (file)
@@ -31,8 +31,6 @@
 #include <string.h>
 #include <assert.h>
 
-#include <va/va_backend.h>
-
 #include "intel_batchbuffer.h"
 #include "intel_driver.h"
 #include "i965_defines.h"
index b45edfc..0fa76d2 100644 (file)
@@ -36,7 +36,6 @@
 #include <string.h>
 #include <assert.h>
 
-#include <va/va_backend.h>
 #include <va/va_dricommon.h>
 
 #include "intel_batchbuffer.h"
index f310793..0b52281 100644 (file)
@@ -29,8 +29,6 @@
 #include <string.h>
 #include <assert.h>
 
-#include <va/va_backend.h>
-
 #include "intel_batchbuffer.h"
 
 static void 
index 380a18d..471ad19 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _INTEL_DRIVER_H_
 #define _INTEL_DRIVER_H_
 
+#include <stddef.h>
 #include <pthread.h>
 #include <signal.h>
 
@@ -62,6 +63,10 @@ struct intel_batchbuffer;
 #define MAX(a, b) ((a) > (b) ? (a) : (b))
 #define ARRAY_ELEMS(a) (sizeof(a) / sizeof((a)[0]))
 
+#define Bool int
+#define True 1
+#define False 0
+
 #define SET_BLOCKED_SIGSET()   do {     \
         sigset_t bl_mask;               \
         sigfillset(&bl_mask);           \