Signed-off-by: Zhao Yakui <[email protected]>
---
 src/i965_drv_video.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
index 1381324..e61214f 100644
--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -1112,7 +1112,9 @@ i965_CreateConfig(VADriverContextP ctx,
     }
 
     if ((vaStatus == VA_STATUS_SUCCESS) &&
-        (profile == VAProfileVP9Profile0)) {
+        (profile == VAProfileVP9Profile0) &&
+        (entrypoint == VAEntrypointVLD) &&
+        !HAS_VP9_DECODING(i965)) {
 
         if (i965->wrapper_pdrvctx) {
             VAGenericID wrapper_config;
@@ -6358,6 +6360,11 @@ i965_initialize_wrapper(VADriverContextP ctx, const char 
*driver_name)
     VAStatus va_status = VA_STATUS_SUCCESS;
     bool driver_loaded = false;
 
+    if (HAS_VP9_DECODING(i965)) {
+        i965->wrapper_pdrvctx = NULL;
+        return va_status;
+    }
+
     wrapper_pdrvctx = calloc(1, sizeof(*wrapper_pdrvctx));
     vtable = calloc(1, sizeof(*vtable));
 
-- 
1.8.2.1

_______________________________________________
Libva mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libva

Reply via email to