radeon/uvd: disable VC-1 simple/main on UVD 2.x
authorGrigori Goronzy <greg@chown.ath.cx>
Wed, 4 Jun 2014 16:54:38 +0000 (18:54 +0200)
committerChristian König <christian.koenig@amd.com>
Wed, 18 Jun 2014 11:58:52 +0000 (13:58 +0200)
It's about as broken as on later UVD revisions.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66452
Cc: "10.1 10.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/drivers/radeon/radeon_video.c

index 63bd805be340d3b04204295080a68283f27b4a37..eae533e6f593846969f9f77f76cc396f3c16885a 100644 (file)
@@ -242,7 +242,10 @@ int rvid_get_video_param(struct pipe_screen *screen,
                switch (param) {
                case PIPE_VIDEO_CAP_SUPPORTED:
                        /* no support for MPEG4 */
-                       return codec != PIPE_VIDEO_FORMAT_MPEG4;
+                       return codec != PIPE_VIDEO_FORMAT_MPEG4 &&
+                              /* FIXME: VC-1 simple/main profile is broken */
+                              profile != PIPE_VIDEO_PROFILE_VC1_SIMPLE &&
+                              profile != PIPE_VIDEO_PROFILE_VC1_MAIN;
                case PIPE_VIDEO_CAP_PREFERS_INTERLACED:
                case PIPE_VIDEO_CAP_SUPPORTS_INTERLACED:
                        /* and MPEG2 only with shaders */