st/va: add VP9 config to enable profile0
authorLeo Liu <leo.liu@amd.com>
Wed, 14 Mar 2018 20:56:25 +0000 (16:56 -0400)
committerLeo Liu <leo.liu@amd.com>
Thu, 12 Apr 2018 15:15:13 +0000 (11:15 -0400)
Signed-off-by: Leo Liu <leo.liu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/va/config.c
src/gallium/state_trackers/va/va_private.h

index 7bc031a1a2f2f711b91a9663256c3fd54513853a..ca0183398a76a0b79c3b26d2b2203a8bd7ef217b 100644 (file)
@@ -52,7 +52,7 @@ vlVaQueryConfigProfiles(VADriverContextP ctx, VAProfile *profile_list, int *num_
    *num_profiles = 0;
 
    pscreen = VL_VA_PSCREEN(ctx);
-   for (p = PIPE_VIDEO_PROFILE_MPEG2_SIMPLE; p <= PIPE_VIDEO_PROFILE_JPEG_BASELINE; ++p) {
+   for (p = PIPE_VIDEO_PROFILE_MPEG2_SIMPLE; p <= PIPE_VIDEO_PROFILE_VP9_PROFILE0; ++p) {
       if (u_reduce_video_profile(p) == PIPE_VIDEO_FORMAT_MPEG4 && !debug_get_option_mpeg4())
          continue;
 
index c82fec3d5f2f265db6e3c6cc84eec2d4365056a9..b5e6cc66386be058a2bed6512ca08d528128381e 100644 (file)
@@ -172,6 +172,8 @@ PipeToProfile(enum pipe_video_profile profile)
       return VAProfileHEVCMain10;
    case PIPE_VIDEO_PROFILE_JPEG_BASELINE:
       return VAProfileJPEGBaseline;
+   case PIPE_VIDEO_PROFILE_VP9_PROFILE0:
+      return VAProfileVP9Profile0;
    case PIPE_VIDEO_PROFILE_MPEG4_AVC_EXTENDED:
    case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH10:
    case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH422:
@@ -218,6 +220,8 @@ ProfileToPipe(VAProfile profile)
       return PIPE_VIDEO_PROFILE_HEVC_MAIN_10;
    case VAProfileJPEGBaseline:
       return PIPE_VIDEO_PROFILE_JPEG_BASELINE;
+   case VAProfileVP9Profile0:
+      return PIPE_VIDEO_PROFILE_VP9_PROFILE0;
    case VAProfileNone:
        return PIPE_VIDEO_PROFILE_UNKNOWN;
    default: