OSDN Git Service

Remove dead code
authorXiang, Haihao <haihao.xiang@intel.com>
Wed, 14 Mar 2018 02:49:43 +0000 (10:49 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 14 Mar 2018 15:12:08 +0000 (23:12 +0800)
tmp_id is always VA_INVALID_ID

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
src/i965_post_processing.c

index a75ea07..ca1976e 100644 (file)
@@ -4917,7 +4917,6 @@ i965_post_processing(
 {
     struct i965_driver_data *i965 = i965_driver_data(ctx);
     VASurfaceID out_surface_id = VA_INVALID_ID;
-    VASurfaceID tmp_id = VA_INVALID_ID;
 
     *has_done_scaling = 0;
 
@@ -4938,9 +4937,6 @@ i965_post_processing(
         if (avs_is_needed(va_flags)) {
             VARectangle tmp_dst_rect;
 
-            if (out_surface_id != VA_INVALID_ID)
-                tmp_id = out_surface_id;
-
             tmp_dst_rect.x = 0;
             tmp_dst_rect.y = 0;
             tmp_dst_rect.width = dst_rect->width;
@@ -4973,9 +4969,6 @@ i965_post_processing(
                                           PP_NV12_AVS,
                                           NULL);
 
-            if (tmp_id != VA_INVALID_ID)
-                i965_DestroySurfaces(ctx, &tmp_id, 1);
-
             *has_done_scaling = 1;
             calibrated_rect->x = 0;
             calibrated_rect->y = 0;