summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/radeon_video.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2016-05-25 16:55:48 +0200
committerChristian König <christian.koenig@amd.com>2016-06-02 09:27:57 +0200
commitb3e75c39976c03f73128ffd802465799ac0e4ef5 (patch)
tree7152ff1967aac4a8ffc8725a604d2882030f6ab6 /src/gallium/drivers/radeon/radeon_video.c
parentb48c42cd1f81bf9a411d19aea2660d75622a1350 (diff)
downloadexternal_mesa3d-b3e75c39976c03f73128ffd802465799ac0e4ef5.zip
external_mesa3d-b3e75c39976c03f73128ffd802465799ac0e4ef5.tar.gz
external_mesa3d-b3e75c39976c03f73128ffd802465799ac0e4ef5.tar.bz2
radeon/uvd: fix the H264 level for Tonga v2
We support 5.2 for a while now. v2: we even support 5.2 for H264, 5.1 is for HEVC. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Cc: <mesa-stable@lists.freedesktop.org>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_video.c')
-rw-r--r--src/gallium/drivers/radeon/radeon_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/radeon_video.c b/src/gallium/drivers/radeon/radeon_video.c
index da65ce8..aba1404 100644
--- a/src/gallium/drivers/radeon/radeon_video.c
+++ b/src/gallium/drivers/radeon/radeon_video.c
@@ -298,7 +298,7 @@ int rvid_get_video_param(struct pipe_screen *screen,
case PIPE_VIDEO_PROFILE_MPEG4_AVC_BASELINE:
case PIPE_VIDEO_PROFILE_MPEG4_AVC_MAIN:
case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH:
- return 41;
+ return (rscreen->family < CHIP_TONGA) ? 41 : 52;
case PIPE_VIDEO_PROFILE_HEVC_MAIN:
case PIPE_VIDEO_PROFILE_HEVC_MAIN_10:
return 186;