diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2018-03-14 10:49:43 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2018-03-14 23:12:08 +0800 |
commit | d29b5dd29dac8795b52227ec45ef0c1d8b079a10 (patch) | |
tree | b68b96dbb10ae3827f54a4ef92970b5d9c50b29c /src/i965_post_processing.c | |
parent | b284286e089ee8e85b224b4be22c745383c08372 (diff) | |
download | libva-intel-driver-d29b5dd29dac8795b52227ec45ef0c1d8b079a10.tar.gz |
Remove dead code
tmp_id is always VA_INVALID_ID
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Diffstat (limited to 'src/i965_post_processing.c')
-rw-r--r-- | src/i965_post_processing.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c index a75ea07f..ca1976e7 100644 --- a/src/i965_post_processing.c +++ b/src/i965_post_processing.c @@ -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; |