[PATCH 2/7] etnaviv: fix XV resize for UYVY source format

Lucas Stach l.stach at pengutronix.de
Tue Nov 22 13:25:26 UTC 2016


Am Dienstag, den 22.11.2016, 13:10 +0000 schrieb Russell King:
> On Tue, Nov 22, 2016 at 01:50:36PM +0100, Lucas Stach wrote:
> > Am Dienstag, den 22.11.2016, 12:02 +0000 schrieb Russell King:
> > > On Tue, Nov 22, 2016 at 12:44:15PM +0100, Lucas Stach wrote:
> > > > It seems the video blitter doesn't like to blit from one YUV
> > > > format to another and writes out a fully cleared buffer in
> > > > that case.
> > > 
> > > Which GPU?  It works for me on GC600 and GC320, and it's explicitly
> > > mentioned in the available GC320 documentation that the format we're
> > > using is specifically supported for this use.
> > 
> > GC320 on i.MX6. As soon as the 2 stage scaling is needed the XV window
> > turns into a solid green without this fix.
> 
> I've just re-checked on the iMX6Q Cubox-i, and it works for me here.
> Tested with vlc -f test.mp2.
> 
> Maybe there's an alignment problem with the player that you're using
> which is causing the GPU problems - several players make assumptions
> about the pitch rather than asking the X server what is required,
> although I thought we caught those cases.
> 
I've just retested it without my patches.

This GStreamer pipeline fails:
gst-launch-1.0 videotestsrc ! video/x-raw,format=UYVY,framerate=25/1 ! xvimagesink device=1

While this one works as expected:
gst-launch-1.0 videotestsrc ! video/x-raw,format=YUY2,framerate=25/1 ! xvimagesink device=1

With the patch applied, both of them are working.

Regards,
Lucas



More information about the etnaviv mailing list