radeon/uvd: fix field handling on R6XX style UVD
authorChristian König <christian.koenig@amd.com>
Sun, 24 Aug 2014 10:22:08 +0000 (12:22 +0200)
committerChristian König <christian.koenig@amd.com>
Tue, 26 Aug 2014 15:56:57 +0000 (17:56 +0200)
The first UVD generation can only do frame based output.

Signed-off-by: Christian König <christian.koenig@amd.com>
src/gallium/drivers/radeon/radeon_video.c

index 17e9a59..6dcee45 100644 (file)
@@ -251,8 +251,11 @@ int rvid_get_video_param(struct pipe_screen *screen,
                               profile != PIPE_VIDEO_PROFILE_VC1_MAIN;
                case PIPE_VIDEO_CAP_PREFERS_INTERLACED:
                case PIPE_VIDEO_CAP_SUPPORTS_INTERLACED:
-                       /* and MPEG2 only with shaders */
-                       return codec != PIPE_VIDEO_FORMAT_MPEG12;
+                       /* MPEG2 only with shaders and no support for
+                          interlacing on R6xx style UVD */
+                       return codec != PIPE_VIDEO_FORMAT_MPEG12 &&
+                              /* TODO: RV770 might actually work */
+                              rscreen->family > CHIP_RV770;
                default:
                        break;
                }