[Mesa-dev] [PATCH 3/6] radeon/uvd: disable VC-1 simple/main profile

Grigori Goronzy greg at chown.ath.cx
Wed Oct 9 02:23:49 CEST 2013


It doesn't work (decodes to garbage) with most videos on UVD 3.0. Worse
yet, it often results in random memory corruption or GPU hangs. Rumor
has it only the newest UVD hardware could do it anyway.
---
 src/gallium/drivers/radeon/radeon_uvd.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeon/radeon_uvd.c b/src/gallium/drivers/radeon/radeon_uvd.c
index da92ace..134ce4e 100644
--- a/src/gallium/drivers/radeon/radeon_uvd.c
+++ b/src/gallium/drivers/radeon/radeon_uvd.c
@@ -1115,8 +1115,10 @@ int ruvd_get_video_param(struct pipe_screen *screen,
 		case PIPE_VIDEO_FORMAT_MPEG12:
 		case PIPE_VIDEO_FORMAT_MPEG4:
 		case PIPE_VIDEO_FORMAT_MPEG4_AVC:
-		case PIPE_VIDEO_FORMAT_VC1:
 			return true;
+		case PIPE_VIDEO_FORMAT_VC1:
+			/* FIXME: VC-1 simple/main profile is broken */
+			return profile == PIPE_VIDEO_PROFILE_VC1_ADVANCED;
 		default:
 			return false;
 		}
-- 
1.8.1.2



More information about the mesa-dev mailing list