From: Maxime Ripard Subject: Re: [RFC PATCH i-g-t 0/3] Test the plane formats on the Chamelium Date: Wed, 28 Mar 2018 10:30:32 +0200 Message-ID: <20180328083032.tkn5c5iwxjvqbp56@flea> References: <20180305142129.18352-1-maxime.ripard@bootlin.com> <20180321112517.bxxfp663yexjuihn@flea> <87zi31tkwn.fsf@anholt.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0953457000==" Return-path: Received: from mail.bootlin.com (mail.bootlin.com [62.4.15.54]) by gabe.freedesktop.org (Postfix) with ESMTP id 3A8EF6E1E1 for ; Wed, 28 Mar 2018 08:30:43 +0000 (UTC) In-Reply-To: <87zi31tkwn.fsf@anholt.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Eric Anholt Cc: intel-gfx@lists.freedesktop.org, Thomas Petazzoni , eben@raspberrypi.org List-Id: intel-gfx@lists.freedesktop.org --===============0953457000== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="bcsiwdpnb3ngsamm" Content-Disposition: inline --bcsiwdpnb3ngsamm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Eric, Thanks for your input. On Wed, Mar 21, 2018 at 10:10:00AM -0700, Eric Anholt wrote: > Maxime Ripard writes: >=20 > > [ Unknown signature status ] > > Hi, > > > > On Mon, Mar 05, 2018 at 03:21:26PM +0100, Maxime Ripard wrote: > >> Here is an RFC at starting to test the plane formats using the > >> Chamelium over the HDMI. This was tested using the vc4 DRM driver > >> found on the RaspberryPi. > >>=20 > >> This is still pretty rough around the edges at this point, but I'd > >> like to get feedback on a few issues before getting any further. > >>=20 > >> * I've used pixman for now to convert back and forth the pattern and > >> the captured frame. While this worked quite well for the RGB > >> formats since pixman supports most (but not all) of them. However, > >> the long term plan is to also test YUV and more exotic (like > >> vendor specific) formats that pixman has 0 support for. So I > >> really wonder whether this is the right approach compared to: > >> - Using something else (but what?)? > >> - Rolling our own format conversion library? >=20 > Let's start with pixman and either extend pixman if we have formats we > need (they should be pretty amenable for non-yuv channel layouts), or > roll our own YUV bits. For tiling, I think we can just take > pixman-generated linear image content and do the tiling in igt. Ok. I guess another alternative could be to use libv4lconvert that already has a number of rgb to yuv conversions routines. I'm not sure whether adding a new dependency is ok though. > >> * I've so far had a single big test that will test all the formats > >> exposed by the planes that have a pixman representation. I wonder > >> whether this is preferrable, or if we want to have a subtest per > >> format. I guess the latter will be slightly better since we would > >> be able to catch regressions in the number of formats exposed that > >> we wouldn't be able to with the former. >=20 > Yeah, exposing the formats as subtests is probably a good idea. I'll do that then. > >> * Kind of related, I'm not sure what is the policy when it comes to > >> tests, and whether I should merge this tests with kms_chamelium or > >> leave it as a separate file. >=20 > I'll leave this up to the original test author. >=20 > >> * One of the biggest challenge of the serie is to support formats > >> that have less bits than the reference frame. Indeed, the flow of > >> patterns is this one: the pattern will first be generated in > >> ARGB8888. It will then be converted to whatever format we want to > >> test, be fed into the display engine, that will output it, and the > >> Chamelium will capture it in ARGB8888. > >> However, when the plane format has less than 8 bits per color, > >> some upsampling will happen, where the less significant bits will > >> be filled with values that probably depend on the display > >> engine. Another side effect is that the CRC used in the Chamelium > >> tests cannot be used anymore. > >> The way I'm testing currently is that I'm retrieving the frame, > >> and then compare each pixels on their most significant bits. This > >> sounds inefficient, and it is, especially on the RPi that doesn't > >> have the best networking throughput out there. > >> I guess we could also generate a CRC for both an upsampling with > >> the lowest bits set to 1, and one for the lowest bits set to 0, > >> and try to see if one of them match. I guess this should cover > >> most of the situation. >=20 > I still think that we should expect the top bits to be replicated into > the low bits, until we find hardware that just can't do that. That works for me then. I'll try to have all these changes, and send a new version then. Thanks! Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --bcsiwdpnb3ngsamm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlq7UqcACgkQ0rTAlCFN r3T4tg//S5iq4+FvzI0oU5PR6VEWDXRR7hADRA3JW033EV5Eo2yKl7/kWI4NURi4 f3DbZZEd1/gRc+7uHgPDH5TSj6k9YI7sAPQsbxdpgfSkcSJXPDNzWq6qFDRKPf4W cgb5mGiOGaTj0/b/XopbA85jrWO/sYLEOIoSKVfGs+zygkNMyXXtVJstccpZA9Sf p8GxA28JIJTyKWqHG9Tqn06XfVh6CinICiowWMQAaPiK6rVL49/DOuzZi87r6r+s 3/yPFg8l4kYFTNhPA4b5Mjef6xQstnPpDo9owNXnnNUWtjHdd8ygJu6yy+xN5Te0 JXOw0yJ9Xkfphq1AtK2Xm+Wk3wEpXHY8HzzdrMSVJuEMRL3uH1fJaoLKzJxNrIFA WOc5CiNdRnRkB7urSqrdLXLLfdkvJhiYY5ZVTy5QiS2qa8UXIVilsemcNk3zYhYJ einFex3ab0ZB5hO5pEUNrIk7lqjrYwW84JcjKMjTfl2CJevUW0SOuxsPWWqzNodD ZtmI6MUopCARMi03Rq72BVIRSGGOOkzFKv5ZT1R7kFI9FQj1J0ZtwbP6Rsd+WYM7 7BMdVK1tsRClqtJU2mohLg0j7eyN5vBSz5itvM5lLCoFbVaF/G65F2DG74IbhbKG lY3OhxK96JHEDF9tFi/IvSTK0uxIZ011D6k17oAvGZdZmNujfTc= =8Mu9 -----END PGP SIGNATURE----- --bcsiwdpnb3ngsamm-- --===============0953457000== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KSW50ZWwtZ2Z4 IG1haWxpbmcgbGlzdApJbnRlbC1nZnhAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vaW50ZWwtZ2Z4Cg== --===============0953457000==--