summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon
diff options
context:
space:
mode:
authorGrigori Goronzy <[email protected]>2013-10-09 02:23:49 +0200
committerChristian König <[email protected]>2013-10-09 13:02:40 +0200
commit5b4e2db12d9b45e898a8eb6599d928504ffd30c3 (patch)
treec867fb4a08a32db8005dbb0a8d1e78017dc83000 /src/gallium/drivers/radeon
parent5403dd4b6869cabcb8e2a0ed4d4f278983d1a15c (diff)
radeon/uvd: disable VC-1 simple/main profile
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. Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r--src/gallium/drivers/radeon/radeon_uvd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/radeon_uvd.c b/src/gallium/drivers/radeon/radeon_uvd.c
index da92ace57ba..134ce4e1b9f 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;
}