st/va: add missing profiles in PipeToProfile's switch.
authorJulien Isorce <j.isorce@samsung.com>
Thu, 26 Nov 2015 08:21:45 +0000 (08:21 +0000)
committerJulien Isorce <j.isorce@samsung.com>
Thu, 26 Nov 2015 08:21:45 +0000 (08:21 +0000)
Otherwise assert is raised from vlVaQueryConfigProfiles's for loop.

Signed-off-by: Julien Isorce <j.isorce@samsung.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/va/va_private.h

index 6fb687b781e925bfa9b5e937e7cf2d69230c4e6c..98ca66af98c4877a897597a0b921a94c3858c535 100644 (file)
@@ -148,6 +148,13 @@ PipeToProfile(enum pipe_video_profile profile)
    case PIPE_VIDEO_PROFILE_HEVC_MAIN:
       return VAProfileHEVCMain;
    case PIPE_VIDEO_PROFILE_MPEG4_AVC_EXTENDED:
+   case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH10:
+   case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH422:
+   case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH444:
+   case PIPE_VIDEO_PROFILE_HEVC_MAIN_10:
+   case PIPE_VIDEO_PROFILE_HEVC_MAIN_12:
+   case PIPE_VIDEO_PROFILE_HEVC_MAIN_STILL:
+   case PIPE_VIDEO_PROFILE_HEVC_MAIN_444:
    case PIPE_VIDEO_PROFILE_UNKNOWN:
       return VAProfileNone;
    default: