summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/va
diff options
context:
space:
mode:
authorLeo Liu <[email protected]>2018-03-14 16:56:25 -0400
committerLeo Liu <[email protected]>2018-04-12 11:15:13 -0400
commitd9a31341eca8f66995883dbd312122d1a5da6fd0 (patch)
treea38d8913401c75f32d4f0deffea5b281efaca3c7 /src/gallium/state_trackers/va
parentef52ba8aa09214041f91c203eba2563e6e61aef3 (diff)
st/va: add VP9 config to enable profile0
Signed-off-by: Leo Liu <[email protected]> Acked-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/va')
-rw-r--r--src/gallium/state_trackers/va/config.c2
-rw-r--r--src/gallium/state_trackers/va/va_private.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/va/config.c b/src/gallium/state_trackers/va/config.c
index 7bc031a1a2f..ca0183398a7 100644
--- a/src/gallium/state_trackers/va/config.c
+++ b/src/gallium/state_trackers/va/config.c
@@ -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;
diff --git a/src/gallium/state_trackers/va/va_private.h b/src/gallium/state_trackers/va/va_private.h
index c82fec3d5f2..b5e6cc66386 100644
--- a/src/gallium/state_trackers/va/va_private.h
+++ b/src/gallium/state_trackers/va/va_private.h
@@ -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: