[Libva] [PATCH Intel VA] Clean up the duplicate extra two line of code

Xiang, Haihao haihao.xiang at intel.com
Sat Sep 5 22:32:24 PDT 2015


Applied.

Thanks
Haihao

> Signed-off-by: Lim Siew Hoon <siew.hoon.lim at intel.com>
> ---
>  src/gen75_mfd.c | 3 ---
>  src/gen7_mfd.c  | 3 ---
>  src/gen8_mfd.c  | 3 ---
>  3 files changed, 9 deletions(-)
> 
> diff --git a/src/gen75_mfd.c b/src/gen75_mfd.c
> index 9d478ec..1421797 100644
> --- a/src/gen75_mfd.c
> +++ b/src/gen75_mfd.c
> @@ -1919,9 +1919,6 @@ gen75_mfd_vc1_pred_pipe_state(VADriverContextP ctx,
>  
>      assert(decode_state->pic_param && decode_state->pic_param->buffer);
>      pic_param = (VAPictureParameterBufferVC1 *)decode_state->pic_param->buffer;
> -
> -    assert(decode_state->pic_param && decode_state->pic_param->buffer);
> -    pic_param = (VAPictureParameterBufferVC1 *)decode_state->pic_param->buffer;
>      intensitycomp_single = (pic_param->mv_fields.bits.mv_mode == VAMvModeIntensityCompensation);
>  
>      BEGIN_BCS_BATCH(batch, 6);
> diff --git a/src/gen7_mfd.c b/src/gen7_mfd.c
> index 1a26e0c..dc2823c 100755
> --- a/src/gen7_mfd.c
> +++ b/src/gen7_mfd.c
> @@ -1654,9 +1654,6 @@ gen7_mfd_vc1_pred_pipe_state(VADriverContextP ctx,
>  
>      assert(decode_state->pic_param && decode_state->pic_param->buffer);
>      pic_param = (VAPictureParameterBufferVC1 *)decode_state->pic_param->buffer;
> -
> -    assert(decode_state->pic_param && decode_state->pic_param->buffer);
> -    pic_param = (VAPictureParameterBufferVC1 *)decode_state->pic_param->buffer;
>      intensitycomp_single = (pic_param->mv_fields.bits.mv_mode == VAMvModeIntensityCompensation);
>  
>      BEGIN_BCS_BATCH(batch, 6);
> diff --git a/src/gen8_mfd.c b/src/gen8_mfd.c
> index e87155c..09094df 100644
> --- a/src/gen8_mfd.c
> +++ b/src/gen8_mfd.c
> @@ -1679,9 +1679,6 @@ gen8_mfd_vc1_pred_pipe_state(VADriverContextP ctx,
>  
>      assert(decode_state->pic_param && decode_state->pic_param->buffer);
>      pic_param = (VAPictureParameterBufferVC1 *)decode_state->pic_param->buffer;
> -
> -    assert(decode_state->pic_param && decode_state->pic_param->buffer);
> -    pic_param = (VAPictureParameterBufferVC1 *)decode_state->pic_param->buffer;
>      intensitycomp_single = (pic_param->mv_fields.bits.mv_mode == VAMvModeIntensityCompensation);
>  
>      BEGIN_BCS_BATCH(batch, 6);




More information about the Libva mailing list