OSDN Git Service

Query the Huc on APL/KBL to check whether VDENC BRC is supported
authorZhao Yakui <yakui.zhao@intel.com>
Tue, 14 Feb 2017 06:52:40 +0000 (14:52 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 14 Feb 2017 07:06:37 +0000 (15:06 +0800)
The VDENC BRC has the dependency on Huc. When the HUC is loaded,
it will return the corresponding BRC attribute.

Fix the issue #45
https://github.com/01org/intel-vaapi-driver/issues/44

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
src/i965_device_info.c

index 4edc5f7..b838017 100644 (file)
@@ -384,6 +384,7 @@ static struct hw_codec_info bxt_hw_codec_info = {
     .render_init = gen9_render_init,
     .post_processing_context_init = gen9_post_processing_context_init,
     .max_resolution = gen9_max_resolution,
+    .preinit_hw_codec = gen9_hw_codec_preinit,
 
     .max_width = 4096,  /* default. See max_resolution */
     .max_height = 4096, /* default. See max_resolution */
@@ -440,6 +441,7 @@ static struct hw_codec_info kbl_hw_codec_info = {
     .render_init = gen9_render_init,
     .post_processing_context_init = gen9_post_processing_context_init,
     .max_resolution = gen9_max_resolution,
+    .preinit_hw_codec = gen9_hw_codec_preinit,
 
     .max_width = 4096,   /* default. See max_resolution */
     .max_height = 4096,  /* default. See max_resolution */