radeon/video: enable HEVC main 10 decode
authorBoyuan Zhang <boyuan.zhang@amd.com>
Tue, 22 Dec 2015 01:06:26 +0000 (20:06 -0500)
committerLeo Liu <leo.liu@amd.com>
Sat, 12 Mar 2016 03:33:56 +0000 (22:33 -0500)
Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/radeon/radeon_video.c

index 52a1a3dd49aca63a99b40bf2f925955f774644c2..24b0eed51d219da091d8d8668f6c9ae3dec3f2ae 100644 (file)
@@ -248,8 +248,11 @@ int rvid_get_video_param(struct pipe_screen *screen,
                        return true;
                case PIPE_VIDEO_FORMAT_HEVC:
                        /* Carrizo only supports HEVC Main */
-                       return rscreen->family >= CHIP_CARRIZO &&
-                                  profile == PIPE_VIDEO_PROFILE_HEVC_MAIN;
+                       if (rscreen->family >= CHIP_STONEY)
+                               return (profile == PIPE_VIDEO_PROFILE_HEVC_MAIN ||
+                                       profile == PIPE_VIDEO_PROFILE_HEVC_MAIN_10);
+                       else if (rscreen->family >= CHIP_CARRIZO)
+                               return profile == PIPE_VIDEO_PROFILE_HEVC_MAIN;
                default:
                        return false;
                }
@@ -297,6 +300,7 @@ int rvid_get_video_param(struct pipe_screen *screen,
                case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH:
                        return 41;
                case PIPE_VIDEO_PROFILE_HEVC_MAIN:
+               case PIPE_VIDEO_PROFILE_HEVC_MAIN_10:
                        return 186;
                default:
                        return 0;