summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZhao Yakui <yakui.zhao@intel.com>2014-03-04 16:23:07 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2014-06-16 11:53:34 +0800
commit8715ce33aae4e25ef98eed9c1bdcc6b95c5e3253 (patch)
tree4df95a8a5bd9292ffeb98dbae1ce7fadde9d7b27 /src
parent89dcd2e82093654d5c1ab68a9d132406dd641b34 (diff)
downloadlibva-intel-driver-8715ce33aae4e25ef98eed9c1bdcc6b95c5e3253.tar.gz
libva-intel-driver-8715ce33aae4e25ef98eed9c1bdcc6b95c5e3253.tar.bz2
libva-intel-driver-8715ce33aae4e25ef98eed9c1bdcc6b95c5e3253.zip
Define i965_CreateSurfaces in header file explicitly to avoid multiple declaration
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com> (cherry picked from commit 8b3945aa5df443e93a3f5e6e97dffb1574e2a936)
Diffstat (limited to 'src')
-rw-r--r--src/gen75_mfd.c8
-rw-r--r--src/gen75_vpp_gpe.c8
-rw-r--r--src/gen75_vpp_vebox.c8
-rwxr-xr-xsrc/gen7_mfd.c8
-rw-r--r--src/gen8_mfd.c8
-rw-r--r--src/i965_drv_video.h7
-rw-r--r--src/i965_encoder.c8
-rwxr-xr-xsrc/i965_post_processing.c8
8 files changed, 7 insertions, 56 deletions
diff --git a/src/gen75_mfd.c b/src/gen75_mfd.c
index 895b194..b29f077 100644
--- a/src/gen75_mfd.c
+++ b/src/gen75_mfd.c
@@ -2460,14 +2460,6 @@ gen75_mfd_jpeg_bsd_object(VADriverContextP ctx,
/* Workaround for JPEG decoding on Ivybridge */
-VAStatus
-i965_CreateSurfaces(VADriverContextP ctx,
- int width,
- int height,
- int format,
- int num_surfaces,
- VASurfaceID *surfaces);
-
static struct {
int width;
int height;
diff --git a/src/gen75_vpp_gpe.c b/src/gen75_vpp_gpe.c
index 2e3b104..042e4e6 100644
--- a/src/gen75_vpp_gpe.c
+++ b/src/gen75_vpp_gpe.c
@@ -51,14 +51,6 @@
#define CURBE_TOTAL_DATA_LENGTH (4 * 32)
#define CURBE_URB_ENTRY_LENGTH 4
-extern VAStatus
-i965_CreateSurfaces(VADriverContextP ctx,
- int width,
- int height,
- int format,
- int num_surfaces,
- VASurfaceID *surfaces);
-
/* Shaders information for sharpening */
static const unsigned int gen75_gpe_sharpening_h_blur[][4] = {
#include "shaders/post_processing/gen75/sharpening_h_blur.g75b"
diff --git a/src/gen75_vpp_vebox.c b/src/gen75_vpp_vebox.c
index d63729e..1113c90 100644
--- a/src/gen75_vpp_vebox.c
+++ b/src/gen75_vpp_vebox.c
@@ -54,14 +54,6 @@ extern VAStatus
i965_DestroyImage(VADriverContextP ctx, VAImageID image);
-extern VAStatus
-i965_CreateSurfaces(VADriverContextP ctx,
- int width,
- int height,
- int format,
- int num_surfaces,
- VASurfaceID *surfaces);
-
VAStatus vpp_surface_convert(VADriverContextP ctx,
struct object_surface *src_obj_surf,
struct object_surface *dst_obj_surf)
diff --git a/src/gen7_mfd.c b/src/gen7_mfd.c
index 91036be..5830618 100755
--- a/src/gen7_mfd.c
+++ b/src/gen7_mfd.c
@@ -2110,14 +2110,6 @@ gen7_mfd_jpeg_bsd_object(VADriverContextP ctx,
/* Workaround for JPEG decoding on Ivybridge */
-VAStatus
-i965_CreateSurfaces(VADriverContextP ctx,
- int width,
- int height,
- int format,
- int num_surfaces,
- VASurfaceID *surfaces);
-
static struct {
int width;
int height;
diff --git a/src/gen8_mfd.c b/src/gen8_mfd.c
index a080504..1897d71 100644
--- a/src/gen8_mfd.c
+++ b/src/gen8_mfd.c
@@ -2164,14 +2164,6 @@ gen8_mfd_jpeg_bsd_object(VADriverContextP ctx,
/* Workaround for JPEG decoding on Ivybridge */
#ifdef JPEG_WA
-VAStatus
-i965_CreateSurfaces(VADriverContextP ctx,
- int width,
- int height,
- int format,
- int num_surfaces,
- VASurfaceID *surfaces);
-
static struct {
int width;
int height;
diff --git a/src/i965_drv_video.h b/src/i965_drv_video.h
index e8bbf87..66c3466 100644
--- a/src/i965_drv_video.h
+++ b/src/i965_drv_video.h
@@ -435,6 +435,13 @@ extern VAStatus i965_DestroySurfaces(VADriverContextP ctx,
VASurfaceID *surface_list,
int num_surfaces);
+extern VAStatus i965_CreateSurfaces(VADriverContextP ctx,
+ int width,
+ int height,
+ int format,
+ int num_surfaces,
+ VASurfaceID *surfaces);
+
#define I965_SURFACE_MEM_NATIVE 0
#define I965_SURFACE_MEM_GEM_FLINK 1
#define I965_SURFACE_MEM_DRM_PRIME 2
diff --git a/src/i965_encoder.c b/src/i965_encoder.c
index 174f882..0846a39 100644
--- a/src/i965_encoder.c
+++ b/src/i965_encoder.c
@@ -44,14 +44,6 @@ extern Bool gen6_mfc_context_init(VADriverContextP ctx, struct intel_encoder_con
extern Bool gen6_vme_context_init(VADriverContextP ctx, struct intel_encoder_context *encoder_context);
extern Bool gen7_mfc_context_init(VADriverContextP ctx, struct intel_encoder_context *encoder_context);
-VAStatus
-i965_CreateSurfaces(VADriverContextP ctx,
- int width,
- int height,
- int format,
- int num_surfaces,
- VASurfaceID *surfaces);
-
static VAStatus
intel_encoder_check_yuv_surface(VADriverContextP ctx,
VAProfile profile,
diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c
index 3ee3f07..6d435a8 100755
--- a/src/i965_post_processing.c
+++ b/src/i965_post_processing.c
@@ -59,14 +59,6 @@ vpp_surface_convert(VADriverContextP ctx,
#define VA_STATUS_SUCCESS_1 0xFFFFFFFE
-extern VAStatus
-i965_CreateSurfaces(VADriverContextP ctx,
- int width,
- int height,
- int format,
- int num_surfaces,
- VASurfaceID *surfaces);
-
static const uint32_t pp_null_gen5[][4] = {
#include "shaders/post_processing/gen5_6/null.g4b.gen5"
};