[Mesa-dev] [PATCH 1/2] st/vdpau: invert interlaced buffer checks

Andy Furniss andyqos at ukfsn.org
Sat Mar 24 13:18:13 PDT 2012


Christian König wrote:
> That wasn't working as supposed.

What is the status of the recent interlaced commits?

AFAICT not enabled yet - I did have a look by doing

diff --git a/src/gallium/drivers/r600/r600_pipe.c 
b/src/gallium/drivers/r600/r600_pipe.c
index 113dad6..99ef20f 100644
--- a/src/gallium/drivers/r600/r600_pipe.c
+++ b/src/gallium/drivers/r600/r600_pipe.c
@@ -556,9 +556,9 @@ static int r600_get_video_param(struct pipe_screen 
*screen,
         case PIPE_VIDEO_CAP_PREFERED_FORMAT:
                 return PIPE_FORMAT_NV12;
         case PIPE_VIDEO_CAP_PREFERS_INTERLACED:
-               return false;
+               return true;
         case PIPE_VIDEO_CAP_SUPPORTS_INTERLACED:
-               return false;
+               return true;
         case PIPE_VIDEO_CAP_SUPPORTS_PROGRESSIVE:
                 return true;
         default:

With sw decode bob looks OK, but weave is wrong.

I notice the spec says weave should look the same a progressive which I 
didn't really get, but then I suppose doing 75/25 sampling would be 
wrong for progressive hmm.

With ffmpeg12vdpau, with or without this patch I get -

vl/vl_mpeg12_decoder.c:686:vl_mpeg12_end_frame: Assertion 
`!target->interlaced' failed.


More information about the mesa-dev mailing list