Otherwise it still selects NV12 for 10-bit surfaces, which is wrong. Signed-off-by: Zhao Yakui <yakui.z...@intel.com> --- 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@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libva