summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2016-12-05 17:54:58 +0000
committerSean V Kelley <seanvk@posteo.de>2016-12-15 09:55:20 -0800
commit4518d0710906168458b062d5f1bcb20d36fc9e17 (patch)
tree12e0b45612b3ee99ce9f82e7c33de6ae69f98a69
parent8b0837394a4224e83ba2e4448cd24307e2db73b9 (diff)
H.265 main 10 encoder supports only 10bpp render targets
Signed-off-by: Mark Thompson <sw@jkqxz.net> Reviewed-by: Sean V Kelley <seanvk@posteo.de>
-rw-r--r--src/i965_drv_video.c2
1 files changed, 2 insertions, 0 deletions
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;