[Libva] [Intel-driver][PATCH] Restrict the hybrid Vp9 usage on the platform without Vp9 HWDEC

Xiang, Haihao haihao.xiang at intel.com
Mon Apr 25 02:57:34 UTC 2016


Applied. Thanks for the patch.

Best Regards
Haihao

> Signed-off-by: Zhao Yakui <yakui.zhao at intel.com>
> ---
>  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));
>  


More information about the Libva mailing list