radeon/uvd: disable MPEG1
authorChristian König <christian.koenig@amd.com>
Fri, 5 Feb 2016 08:25:59 +0000 (09:25 +0100)
committerChristian König <christian.koenig@amd.com>
Tue, 8 Mar 2016 11:57:08 +0000 (12:57 +0100)
The hardware simply doesn't support that correctly.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/radeon/radeon_video.c

index ec29d8cb75415999e9a222650d6527d5d4495b93..4b3e2cf29e0e71a26aebfbd2443d9a0e888abd51 100644 (file)
@@ -237,6 +237,7 @@ int rvid_get_video_param(struct pipe_screen *screen,
        case PIPE_VIDEO_CAP_SUPPORTED:
                switch (codec) {
                case PIPE_VIDEO_FORMAT_MPEG12:
+                       return profile != PIPE_VIDEO_PROFILE_MPEG1;
                case PIPE_VIDEO_FORMAT_MPEG4:
                case PIPE_VIDEO_FORMAT_MPEG4_AVC:
                        if (rscreen->family < CHIP_PALM)