tmp_id is always VA_INVALID_ID
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
{
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;
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;
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;