[Libva] [PATCH libva-intel-driver 2/6] Define i965_CreateSurfaces in header file explicitly to avoid multiple declaration

yakui.zhao at intel.com yakui.zhao at intel.com
Tue Mar 4 00:32:27 PST 2014


From: Zhao Yakui <yakui.zhao at intel.com>

Signed-off-by: Zhao Yakui <yakui.zhao at intel.com>
---
 src/gen75_mfd.c            | 8 --------
 src/gen75_vpp_gpe.c        | 8 --------
 src/gen75_vpp_vebox.c      | 8 --------
 src/gen7_mfd.c             | 8 --------
 src/gen8_mfd.c             | 8 --------
 src/i965_drv_video.h       | 7 +++++++
 src/i965_encoder.c         | 8 --------
 src/i965_post_processing.c | 8 --------
 8 files changed, 7 insertions(+), 56 deletions(-)

diff --git a/src/gen75_mfd.c b/src/gen75_mfd.c
index 7bea1f7..1ccf6c6 100644
--- a/src/gen75_mfd.c
+++ b/src/gen75_mfd.c
@@ -2466,14 +2466,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 9cb2912..bf853d3 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 20fb44a..5757419 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 a534fb8..2557b1d 100755
--- a/src/gen7_mfd.c
+++ b/src/gen7_mfd.c
@@ -2091,14 +2091,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 08d9b3d..b8976ee 100644
--- a/src/gen8_mfd.c
+++ b/src/gen8_mfd.c
@@ -2180,14 +2180,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 1b2f166..f66970a 100644
--- a/src/i965_drv_video.h
+++ b/src/i965_drv_video.h
@@ -418,6 +418,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 897c60d..c37eccb 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 2581d2a..c37c203 100755
--- a/src/i965_post_processing.c
+++ b/src/i965_post_processing.c
@@ -60,14 +60,6 @@
 
 #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"
 };
-- 
1.8.2-rc2



More information about the Libva mailing list