radeon/uvd: disable VC-1 simple/main profile
authorGrigori Goronzy <greg@chown.ath.cx>
Wed, 9 Oct 2013 00:23:49 +0000 (02:23 +0200)
committerChristian König <christian.koenig@amd.com>
Wed, 9 Oct 2013 11:02:40 +0000 (13:02 +0200)
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 <christian.koenig@amd.com>
src/gallium/drivers/radeon/radeon_uvd.c

index da92ace57ba32e4ca952686f19c34b77ee5f27f1..134ce4e1b9f0c7a09ab2c9ce0278444f7b3bda52 100644 (file)
@@ -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;
                }