From 0b59959bc96bb116007f11b4f7eaf48c1f026713 Mon Sep 17 00:00:00 2001 From: Sean V Kelley Date: Wed, 18 Feb 2015 08:29:55 -0800 Subject: Add support for HEVC decoding on CHV We can re-use SKL HEVC decode pipeline Signed-off-by: Sean V Kelley Cc: haihao.xiang@intel.com Cc: focus.luo@intel.com (cherry picked from commit 78171ec3b8e73071405d9ff6ecbddc05a6787001) --- src/i965_device_info.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/i965_device_info.c b/src/i965_device_info.c index 0c8dcf2d..9227d0ba 100644 --- a/src/i965_device_info.c +++ b/src/i965_device_info.c @@ -262,8 +262,9 @@ static struct hw_codec_info bdw_hw_codec_info = { }, }; +extern struct hw_context *gen9_dec_hw_context_init(VADriverContextP, struct object_config *); static struct hw_codec_info chv_hw_codec_info = { - .dec_hw_context_init = gen8_dec_hw_context_init, + .dec_hw_context_init = gen9_dec_hw_context_init, .enc_hw_context_init = gen8_enc_hw_context_init, .proc_hw_context_init = gen75_proc_context_init, .render_init = gen8_render_init, @@ -296,6 +297,7 @@ static struct hw_codec_info chv_hw_codec_info = { .has_vp8_decoding = 1, .has_vp8_encoding = 1, .has_h264_mvc_encoding = 1, + .has_hevc_decoding = 1, .num_filters = 5, .filters = { @@ -307,7 +309,6 @@ static struct hw_codec_info chv_hw_codec_info = { }, }; -extern struct hw_context *gen9_dec_hw_context_init(VADriverContextP, struct object_config *); extern struct hw_context *gen9_enc_hw_context_init(VADriverContextP, struct object_config *); extern void gen9_post_processing_context_init(VADriverContextP, void *, struct intel_batchbuffer *); static struct hw_codec_info skl_hw_codec_info = { -- cgit v1.2.1