[igt-dev] [PATCH v3 03/11] fb: Add format conversion routine
Maxime Ripard
maxime.ripard at bootlin.com
Thu May 24 15:19:04 UTC 2018
On Thu, May 24, 2018 at 05:58:13PM +0300, Ville Syrjälä wrote:
> On Thu, May 24, 2018 at 04:24:42PM +0200, Maxime Ripard wrote:
> > The chamelium format subtests will need to convert the reference pattern to
> > the format to be tested on the DRM device.
> >
> > However, Cairo is very limited when it comes to format, and while pixman
> > has much more support for formats, it's still falling short compared to
> > what DRM exposes, especially on the YUV side.
>
> We already have the capability to do format conversions automagically.
> I'm extending it to handle more YUV stuff here:
> https://patchwork.freedesktop.org/series/43651/
>
> Can you hook up the pixman stuff in the same way so that we don't
> have to any explicit conversion stuff in the tests themselves?
I really think that the assumption that cairo will handle it is not a
proper fit. Cairo support is very limited, just like pixman is to a
lesser extent, and we should just break the assumption that we will
get a cairo surface all the time.
If we push things further (and we have the intention to do so), we
will have to support proprietary format that are very unlikely to be
supported by cairo at some point.
However, we do intend to support YUV at some point, so reusing the
routines definitely make some sense.
Maxime
--
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/igt-dev/attachments/20180524/79318518/attachment.sig>
More information about the igt-dev
mailing list