From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomi Valkeinen Subject: Re: [PATCH v3 09/15] drm: tilcdc: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp() Date: Fri, 10 Jun 2016 15:08:18 +0300 Message-ID: <575AADB2.70609@ti.com> References: <1465428739-26529-1-git-send-email-laurent.pinchart@ideasonboard.com> <1465428739-26529-10-git-send-email-laurent.pinchart@ideasonboard.com> <575AA9D1.7090002@ti.com> <20160610120537.GH4329@intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1704584932==" Return-path: Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [198.47.19.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id A65C46ED1B for ; Fri, 10 Jun 2016 12:08:30 +0000 (UTC) In-Reply-To: <20160610120537.GH4329@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= Cc: Daniel Vetter , Jyri Sarha , Laurent Pinchart , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1704584932== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="R5QpObfcDXdhoIcQCwukKWcoortwIksA6" --R5QpObfcDXdhoIcQCwukKWcoortwIksA6 Content-Type: multipart/mixed; boundary="GS3TmoobQd54RBaiAjOrxg6shcUHhvOp0" From: Tomi Valkeinen To: =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= Cc: Laurent Pinchart , dri-devel@lists.freedesktop.org, Daniel Vetter , Eric Engestrom , Jyri Sarha Message-ID: <575AADB2.70609@ti.com> Subject: Re: [PATCH v3 09/15] drm: tilcdc: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp() References: <1465428739-26529-1-git-send-email-laurent.pinchart@ideasonboard.com> <1465428739-26529-10-git-send-email-laurent.pinchart@ideasonboard.com> <575AA9D1.7090002@ti.com> <20160610120537.GH4329@intel.com> In-Reply-To: <20160610120537.GH4329@intel.com> --GS3TmoobQd54RBaiAjOrxg6shcUHhvOp0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/06/16 15:05, Ville Syrj=C3=A4l=C3=A4 wrote: >> I'm not sure what's the common way, but tilcdc doesn't support alpha. >> ARGB works, of course, by ignoring A, but... If an userspace app creat= es >> ARGB buffer, does the app expect alpha to work? >=20 > I think what we decided a while ago (at least for i915, but would be go= od > to use the same convention everywhere) was that ARGB will be assumed to= be > pre-multiplied and will enable blending using 1.0*sc+(1.0-sa)*dc as the= > function. There have been some efforts at defining some new properties = to > control the blend equation, but I guess those got bogged down again. Ok, but that's a bit different topic. The question here is, if the HW doesn't support alpha (no planes, so nothing to blend), should it accept ARGB or not. Tomi --GS3TmoobQd54RBaiAjOrxg6shcUHhvOp0-- --R5QpObfcDXdhoIcQCwukKWcoortwIksA6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXWq2yAAoJEPo9qoy8lh71kEwP/iXEeNGUw+9ozQpi27JEUF87 5BYeTQ0Km3KOjqzDvX7S14bPbLjkkhmG1yzTKiV+9TD/wDG+uvQb7hpJgQKC4Ajw W/5fS8+hsbWq5Iu8Cfp5y9cyxo2pFChUZGGkKeEQ9gCFGqWzGV9aCySns07xdrTr BPc0DK99AMWhjrsg+jJ+fiUuePkDXu/wSFFbKm5kHQMmA2ZZuG2DOolbPzuuZCbg x3BAADnaDnuj870SanNAicOfpJaV7cik6yMLXRc3a1iwrXFH4Gkrhy7zoWgGmcrl GngZgJOte65QcrHFbtkF7Oi0JxFuBpW/s6Y7jDTiCkudnCk6HreuAW6FwqjuPbg5 sL1SUDu535TH3Lbd7q0JjZIkKIJyZKo1be96rcZgYxaPKEadeXSp8sooAHPbdrMV /VXjFFhzhnFBA1YNbXaIiex7fzPAxF1ngQVWVGqZesq68zIKIPVvTxC00v543oDY VMQxFUtkJX1SUv8/tP6Sez2WtlxWwXDhWghRGfUfqg0Pn+LdxJqXoNCO3eY4nyn0 La6HNVuGuKd44G/tjrMicstZN4P/8qbws7JRMDgwC9HwSeC/nXFuUhV+iV/8jfXa XtXkAVDulkNR76Vo61HiLYePTKtIn13fRAdE6b797eWpITz6ECotXUmOg5wXtmLe YWtwPJEx7ga5gDUb97/Z =bwtP -----END PGP SIGNATURE----- --R5QpObfcDXdhoIcQCwukKWcoortwIksA6-- --===============1704584932== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1704584932==--