From 4518d0710906168458b062d5f1bcb20d36fc9e17 Mon Sep 17 00:00:00 2001 From: Mark Thompson Date: Mon, 5 Dec 2016 17:54:58 +0000 Subject: [PATCH] H.265 main 10 encoder supports only 10bpp render targets Signed-off-by: Mark Thompson Reviewed-by: Sean V Kelley --- src/i965_drv_video.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c index 79a2aec..e602b4e 100644 --- a/src/i965_drv_video.c +++ b/src/i965_drv_video.c @@ -878,6 +878,8 @@ i965_get_default_chroma_formats(VADriverContextP ctx, VAProfile profile, break; case VAProfileHEVCMain10: + if (HAS_HEVC10_ENCODING(i965) && entrypoint == VAEntrypointEncSlice) + chroma_formats = VA_RT_FORMAT_YUV420_10BPP; if (HAS_HEVC10_DECODING(i965) && entrypoint == VAEntrypointVLD) chroma_formats |= i965->codec_info->hevc_dec_chroma_formats; break; -- 2.11.0