[Libva] [PATCH 6/8] VPP select the appropriate fourcc for deferred surface based on expected format

Sean V Kelley sean.v.kelley at intel.com
Mon Nov 14 22:44:14 UTC 2016


On Wed, Nov 9, 2016 at 11:39 AM, Zhao Yakui <yakui.zhao at intel.com> wrote:
> Otherwise it still selects NV12 for 10-bit surfaces, which is wrong.
>
> Signed-off-by: Zhao Yakui <yakui.zhao at intel.com>

lgtm.

Sean

> ---
>  src/gen75_picture_process.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/src/gen75_picture_process.c b/src/gen75_picture_process.c
> index 95bbcd6..069088a 100644
> --- a/src/gen75_picture_process.c
> +++ b/src/gen75_picture_process.c
> @@ -158,6 +158,10 @@ gen75_proc_picture(VADriverContextP ctx,
>          unsigned int is_tiled = 1;
>          unsigned int fourcc = VA_FOURCC_NV12;
>          int sampling = SUBSAMPLE_YUV420;
> +
> +        if (obj_dst_surf->expected_format == VA_RT_FORMAT_YUV420_10BPP)
> +            fourcc = VA_FOURCC_P010;
> +
>          i965_check_alloc_surface_bo(ctx, obj_dst_surf, is_tiled, fourcc, sampling);
>      }
>
> --
> 2.8.3
>
> _______________________________________________
> Libva mailing list
> Libva at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/libva



-- 
Sean V. Kelley <sean.v.kelley at intel.com>
Open Source Technology Center / SSG
Intel Corp.


More information about the Libva mailing list