OSDN Git Service

Restrict the VP9 HW encoding for Profile0
authorZhao Yakui <yakui.zhao@intel.com>
Tue, 7 Jun 2016 12:56:41 +0000 (08:56 -0400)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 7 Jun 2016 05:11:49 +0000 (13:11 +0800)
Fix the issue that VP9 HW encoding is reported incorrectly for VP9 Profile2.

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

index 0a337f4..6c88be7 100644 (file)
@@ -735,7 +735,7 @@ i965_QueryConfigEntrypoints(VADriverContextP ctx,
         if(HAS_VP9_DECODING_PROFILE(i965, profile))
             entrypoint_list[n++] = VAEntrypointVLD;
 
-        if (HAS_VP9_ENCODING(i965))
+        if (HAS_VP9_ENCODING(i965) && (profile == VAProfileVP9Profile0))
             entrypoint_list[n++] = VAEntrypointEncSlice;
 
         if(profile == VAProfileVP9Profile0) {