radeonsi: Don't prefer interlaced for video decode
authorDavid Rosca <nowrep@gmail.com>
Fri, 28 Jul 2023 07:40:07 +0000 (09:40 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 1 Aug 2023 21:58:27 +0000 (21:58 +0000)
Preferring interlaced results in all surfaces being allocated
as interlaced for H264 decode regardless of whether the decoded
pic is interlaced or progressive, which makes VA postproc
apply deinterlacing even for progressive pics.

Deinterlacing interlaced pics still works because VA frontend
will now reallocate surface as interlaced when decoding interlaced
pics.

Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24361>

src/gallium/drivers/radeonsi/si_get.c

index 1c35153..7bda1ad 100644 (file)
@@ -857,6 +857,7 @@ static int si_get_video_param(struct pipe_screen *screen, enum pipe_video_profil
          return PIPE_FORMAT_NV12;
 
    case PIPE_VIDEO_CAP_PREFERS_INTERLACED:
+      return false;
    case PIPE_VIDEO_CAP_SUPPORTS_INTERLACED: {
       enum pipe_video_format format = u_reduce_video_profile(profile);