Mesa (master): radeon/uvd: fix the H264 level for Tonga v2

Christian König deathsimple at kemper.freedesktop.org
Thu Jun 2 07:37:29 UTC 2016


Module: Mesa
Branch: master
Commit: b3e75c39976c03f73128ffd802465799ac0e4ef5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b3e75c39976c03f73128ffd802465799ac0e4ef5

Author: Christian König <christian.koenig at amd.com>
Date:   Wed May 25 16:55:48 2016 +0200

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 at amd.com>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
Cc: <mesa-stable at lists.freedesktop.org>

---

 src/gallium/drivers/radeon/radeon_video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;




More information about the mesa-commit mailing list