From: Inki Dae Subject: RE: [PATCH 5/5] drm/exynos: Add plane support with fimd Date: Tue, 13 Dec 2011 11:39:24 +0900 Message-ID: <012e01ccb940$6f0f9740$4d2ec5c0$%dae@samsung.com> References: <1323418995-6492-1-git-send-email-inki.dae@samsung.com> <1323428379-12024-1-git-send-email-inki.dae@samsung.com> <1323428379-12024-6-git-send-email-inki.dae@samsung.com> <4EE69F4C.4080506@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by gabe.freedesktop.org (Postfix) with ESMTP id 151E09E860 for ; Mon, 12 Dec 2011 18:39:29 -0800 (PST) Received: from epcpsbgm1.samsung.com (mailout3.samsung.com [203.254.224.33]) by mailout3.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTP id <0LW400MBDFDRAWH0@mailout3.samsung.com> for dri-devel@lists.freedesktop.org; Tue, 13 Dec 2011 11:39:28 +0900 (KST) Received: from NOINKIDAE02 ([165.213.219.102]) by mmp2.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTPA id <0LW4007BWFDRZU80@mmp2.samsung.com> for dri-devel@lists.freedesktop.org; Tue, 13 Dec 2011 11:39:27 +0900 (KST) In-reply-to: Content-language: ko List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: 'Rob Clark' , 'Joonyoung Shim' Cc: kyungmin.park@samsung.com, sw0312.kim@samsung.com, dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org Hi, Rob. below is my answer. > -----Original Message----- > From: Rob Clark [mailto:robdclark@gmail.com] > Sent: Tuesday, December 13, 2011 9:48 AM > To: Joonyoung Shim > Cc: Inki Dae; kyungmin.park@samsung.com; sw0312.kim@samsung.com; dri- > devel@lists.freedesktop.org > Subject: Re: [PATCH 5/5] drm/exynos: Add plane support with fimd > = > On Mon, Dec 12, 2011 at 6:41 PM, Joonyoung Shim > wrote: > > On 12/13/2011 06:59 AM, Rob Clark wrote: > >> > >> On Fri, Dec 9, 2011 at 4:59 AM, Inki Dae =A0wrot= e: > >>> > >>> From: Joonyoung Shim > >>> > >>> The exynos fimd supports 5 window overlays. Only one window overlay of > >>> fimd is used by the crtc, so we need plane feature to use the rest > >>> window overlays. > >>> > >>> This creates one ioctl exynos specific - DRM_EXYNOS_PLANE_SET_ZPOS, it > >>> is the ioctl to decide for user to assign which window overlay. > >>> > >> btw, I think I will end up with a similar ioctl.. so thought I'd > >> double check for consistency, is zorder interpreted from back to front > >> or front to back? =A0Ie. higher numeric value in front or behind of > >> lower numeric value? =A0Are negative values permitted? > > > > > > The zpos of exynos plane is just the index of overlay of exynos fimd or > > exynos hdmi. 0 zpos means first overlay and 1 zpos means second overlay. > > It isn't the priority value but higher zpos will have higher priority > > generally. > = > I'm not sure that I quite understand that.. does that mean zpos=3D1 will > be in front of zpos=3D0 (which would be in front of crtc, aka zpos=3D-1). > Do you have a way to put overlays *behind* crtc layer (which > presumably would be in some mode with an alpha channel?) > = > (IIRC, samsung has some public TRM type document.. if this is covered > there, feel free to answer by just pointing me at the section I should > read) > = I know that omap, at least omap3(Display Controller of the Display Subsystem), has two modes. one is normal mode and another is alpha mode. and they also have different overlay priority but Samsung exynos has fixed priority to hardware overlays. so higher overlay always is in front of lower overlay. in case of plane module for Samsung SoC, if zpos is -1 then crtc has default overlay designated by machine code. so whether some overlay is in front of crtc or not would be decided by default overlay. Thank you, Inki Dae. > BR, > -R > = > > A negative value -1 is defined to special value. A exynos crtc should > > use one overlay and -1 zpos means the overlay that crtc uses. > > > > Thanks. > > > >> BR, > >> -R > >> > >> _______________________________________________ > >> dri-devel mailing list > >> dri-devel@lists.freedesktop.org > >> http://lists.freedesktop.org/mailman/listinfo/dri-devel > >> > >