From: Simon Farnsworth Subject: Re: Page flipping not working as expected for compositing - engineering resource available to help fix it Date: Tue, 11 May 2010 09:40:09 +0100 Message-ID: <201005110940.09692.simon.farnsworth@onelan.com> References: <201005071407.48208.simon.farnsworth@onelan.com> <201005101759.16910.simon.farnsworth@onelan.com> <20100510110049.2eeff2f3@virtuousgeek.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from claranet-outbound-smtp05.uk.clara.net (claranet-outbound-smtp05.uk.clara.net [195.8.89.38]) by gabe.freedesktop.org (Postfix) with ESMTP id 8DB3E9E7B0 for ; Tue, 11 May 2010 01:40:14 -0700 (PDT) In-Reply-To: <20100510110049.2eeff2f3@virtuousgeek.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Jesse Barnes Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Monday 10 May 2010, Jesse Barnes wrote: > What about the indirect bug? Did that also go away when you fixed the > perms issue? If not, that sounds like a serious issue, in indirect > mode the swap interval should still be honored I think... In indirect mode, the swap interval was being honoured by the page flipping code, but SwapBuffers wasn't blocking; instead, I appeared to be able to continue to draw to the backbuffer after issuing SwapBuffers in my application. In direct mode, SwapBuffers behaved as I'd expect - I blocked as soon as I tried to draw, until the swap had completed. Guessing wildly, when I SwapBuffers in a direct context, I ask the kernel to stall me as soon as I draw to the back buffer (which is presumably still in use as the real front buffer). When I'm in an indirect context, it's the X server process that calls the kernel, which can't block, because that would stop it servicing other clients, and it's not blocking me until it discovers asynchronously that the kernel has pageflipped. -- Simon Farnsworth Software Engineer ONELAN Limited http://www.onelan.com/