OSDN Git Service

Do not return VA_STATUS_SUCCESS when checking (VAProfileVP9Profile0, VAEntrypointEncS...
authorXiang, Haihao <haihao.xiang@intel.com>
Tue, 14 Feb 2017 06:25:51 +0000 (14:25 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 14 Feb 2017 07:28:38 +0000 (15:28 +0800)
SKL doesn't support VP9 hardware accelerated encoding, the hybrid driver also doesn't
support VP9 encoding.

This fixes https://github.com/01org/intel-vaapi-driver/issues/46

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
src/i965_drv_video.c

index 9f84b0e..632d6d2 100644 (file)
@@ -831,7 +831,9 @@ i965_validate_config(VADriverContextP ctx, VAProfile profile,
         } else if ((HAS_VP9_ENCODING_PROFILE(i965, profile)) &&
                    (entrypoint == VAEntrypointEncSlice)) {
             va_status = VA_STATUS_SUCCESS;
-        } else if (profile == VAProfileVP9Profile0 && i965->wrapper_pdrvctx) {
+        } else if (profile == VAProfileVP9Profile0 &&
+                   entrypoint == VAEntrypointVLD &&
+                   i965->wrapper_pdrvctx) {
             va_status = VA_STATUS_SUCCESS;
         } else if(!HAS_VP9_DECODING_PROFILE(i965, profile) &&
                   !HAS_VP9_ENCODING(i965) && !i965->wrapper_pdrvctx) {