summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2018-01-17 14:13:00 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2018-01-29 12:40:02 +0800
commit5e707b08322d483fe9b47a0dea7ff23ddcc133ea (patch)
treed829fd24411f1ab1dc7d83388997a477f3e41b82
parent0075a6ea62b1487da152afd518124ec5d7a04799 (diff)
downloadlibva-intel-driver-5e707b08322d483fe9b47a0dea7ff23ddcc133ea.tar.gz
Enable VP9 non-low power encoding
We re-use KBL VP9 code Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
-rw-r--r--src/gen9_vme.c5
-rw-r--r--src/i965_device_info.c4
2 files changed, 4 insertions, 5 deletions
diff --git a/src/gen9_vme.c b/src/gen9_vme.c
index d4c55f58..19a9097e 100644
--- a/src/gen9_vme.c
+++ b/src/gen9_vme.c
@@ -1992,10 +1992,7 @@ Bool gen9_vme_context_init(VADriverContextP ctx, struct intel_encoder_context *e
}
if (encoder_context->codec == CODEC_VP9) {
- if (IS_GEN10(i965->intel.device_info))
- return False;
- else
- return gen9_vp9_vme_context_init(ctx, encoder_context);
+ return gen9_vp9_vme_context_init(ctx, encoder_context);
} else if (encoder_context->codec == CODEC_VP8) {
return i965_encoder_vp8_vme_context_init(ctx, encoder_context);
} else if (encoder_context->codec == CODEC_H264 ||
diff --git a/src/i965_device_info.c b/src/i965_device_info.c
index 5d9ecefb..a6adcf5c 100644
--- a/src/i965_device_info.c
+++ b/src/i965_device_info.c
@@ -693,13 +693,15 @@ static struct hw_codec_info cnl_hw_codec_info = {
.has_hevc10_encoding = 1,
.has_vp9_decoding = 1,
.has_vpp_p010 = 1,
- .has_vp9_encoding = 0,
+ .has_vp9_encoding = 1,
.has_lp_h264_encoding = 1,
.has_lp_vp9_encoding = 1,
.lp_h264_brc_mode = VA_RC_CQP,
.h264_brc_mode = VA_RC_CQP | VA_RC_CBR | VA_RC_VBR | VA_RC_MB,
+ .vp9_brc_mode = VA_RC_CQP | VA_RC_CBR | VA_RC_VBR,
+
.num_filters = 5,
.filters = {
{ VAProcFilterNoiseReduction, I965_RING_VEBOX },