From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id A7170E007BA; Fri, 7 Nov 2014 12:03:39 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.192.172 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-pd0-f172.google.com (mail-pd0-f172.google.com [209.85.192.172]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id A1C02E0076C for ; Fri, 7 Nov 2014 12:03:33 -0800 (PST) Received: by mail-pd0-f172.google.com with SMTP id r10so3947762pdi.3 for ; Fri, 07 Nov 2014 12:03:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=zRbwDoWD3SqbKeLcIOZ1VZlYrRw2AOzcSW3oAV+7W24=; b=egm1q48xETh73yWjef7uFPJuP+7enPGcUidTqNk42lS/gS25VwSEd/ynCst5PT5U1U c5BTpQn8XD2zxw7M89fDISFnIddMU8OTXo7mV3bs2zWvkI7nn6E/dV5HRIgCP8RSaYLa VuoTsUU44R5/WKCfV79xtYY0KCfsxdMZ9lUrEh4cBu5x+bVjZSG5FBeE0mNHF7kDo2cL IxVuzmlvFKTilEjE2wPh+/jBdF+Sx0kxNwGzk812VoTz85GnHtvPhW7aZwrwpVZSxbqj 0MSu0BE6QweD+PVEWOCh9V+/+k4Y03cdHiHKwh7evX3mRMy+jXIy1gzYqf6soYrXotz5 B0KQ== X-Gm-Message-State: ALoCoQlfZGx+R2g7L1i7Nt/Go6lkEvEtQ9VqftXGP28xEUBNkDVDdgyi9mxddtfVka5wpHNzTE+j X-Received: by 10.66.194.39 with SMTP id ht7mr14413335pac.91.1415390610152; Fri, 07 Nov 2014 12:03:30 -0800 (PST) Received: from [192.168.0.180] (wsip-70-184-93-199.ph.ph.cox.net. [70.184.93.199]) by mx.google.com with ESMTPSA id w6sm5413413pbs.66.2014.11.07.12.03.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Nov 2014 12:03:29 -0800 (PST) Message-ID: <545D258F.1060203@boundarydevices.com> Date: Fri, 07 Nov 2014 13:03:27 -0700 From: Eric Nelson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Jason Anderson , meta-freescale@yoctoproject.org References: In-Reply-To: Subject: Re: Enabling transparency on overlay surface X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2014 20:03:39 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Hi Jason, On 11/07/2014 12:11 PM, Jason Anderson wrote: > HI, > > I am working on an OpenGL ES application and trying to use /dev/fb1 as > an overlay on my i.MX6 (Boundary Devices BD-SL-i.MX6) . My current > image is Yocto 1.6 , 3.10.17 kernel. > > I have my app rendering my background to /dev/fb0 and my overlay to > /dev/fb1, but I can’t get fb1 transparency enabled. Does any have have > an example of how to use the overlay with OpenGL ES/EGL? > The fb1 transparency doesn't have anything to do with OpenGL, but is available using a set of custom ioctls on the frame-buffer device. In particular, look at MXCFB_SET_GBL_ALPHA and MXCFB_SET_CLR_KEY: https://github.com/boundarydevices/linux-imx6/blob/boundary-imx_3.10.17_1.0.2_ga/drivers/video/mxc/mxc_ipuv3_fb.c#L1029 The MXCFB_SET_OVERLAY_POS ioctl is also very useful for placing fb1 on top of fb0. Regards, Eric