OSDN Git Service

Fix packed headers attribute test in vaCreateConfig()
[android-x86/hardware-intel-common-vaapi.git] / test / i965_avce_test_common.cpp
index 46a2b20..3d1eec8 100644 (file)
@@ -42,9 +42,6 @@ VAStatus CheckSupported(VAProfile profile, VAEntrypoint entrypoint)
     EXPECT_PTR(i965);
 
     switch(profile) {
-    case VAProfileH264Baseline:
-        return VA_STATUS_ERROR_UNSUPPORTED_PROFILE;
-
     case VAProfileH264ConstrainedBaseline:
     case VAProfileH264Main:
     case VAProfileH264High:
@@ -59,6 +56,20 @@ VAStatus CheckSupported(VAProfile profile, VAEntrypoint entrypoint)
             if (HAS_LP_H264_ENCODING(i965)) {
                 return VA_STATUS_SUCCESS;
             }
+        } else if (entrypoint == VAEntrypointFEI) {
+            if (IS_SKL(i965->intel.device_info)) {
+                return VA_STATUS_SUCCESS;
+            }
+            if (HAS_FEI_H264_ENCODING(i965)) {
+                return VA_STATUS_SUCCESS;
+            }
+        } else if (entrypoint == VAEntrypointStats) {
+            if (IS_SKL(i965->intel.device_info)) {
+                return VA_STATUS_SUCCESS;
+            }
+            if (HAS_H264_PREENC(i965)) {
+                return VA_STATUS_SUCCESS;
+            }
         }
         break;