All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Farnsworth <simon.farnsworth@onelan.com>
To: intel-gfx@lists.freedesktop.org
Subject: Re: Page flipping not working as expected for compositing - engineering resource available to help fix it
Date: Mon, 10 May 2010 12:04:54 +0100	[thread overview]
Message-ID: <201005101204.54591.simon.farnsworth@onelan.com> (raw)
In-Reply-To: <201005071407.48208.simon.farnsworth@onelan.com>

On Friday 7 May 2010, Simon Farnsworth <simon.farnsworth@onelan.com> wrote:
> I've attached my test program (it's based on our C++ OpenGL compositor, but
> cut down to just test OpenGL pageflipping) as performance.c, and my test X
> stack's Xorg.0.log after one run of "performance -indirect" (which ran for
> 573 frames). I'm using a 32-bit PAE kernel - I can add information as
> required, and I'm happy to run tests or experiments for people.
> 
> 2) How should I go about fixing compositing? Should I fix indirect
> rendering to use pageflipping (and if so, where do I start looking for the
> code that's getting it wrong), or should I make TFP work when direct
> rendering (and again, where should I start looking)?
> 
Getting further. I've been able to confirm (by putting lots of calls to 
xf86DrvMsg in the intel driver) that page flipping is happening for both direct 
and indirect rendering.

However, when I'm direct rendering, glXSwapBuffers stalls until the swap is 
complete (as I'd expect). When I'm indirect rendering, it doesn't - I get 
resumed immediately, which causes my excessive frame rate.

Is this the expected behaviour when indirect rendering? If so, I'll dive back 
into the stack and see if I can work out why TFP and direct rendering don't 
interact nicely. If not, roughly where should I look to fix it?
-- 
Simon Farnsworth
Software Engineer
ONELAN Limited
http://www.onelan.com/

  reply	other threads:[~2010-05-10 11:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-07 13:07 Page flipping not working as expected for compositing - engineering resource available to help fix it Simon Farnsworth
2010-05-10 11:04 ` Simon Farnsworth [this message]
2010-05-10 16:59   ` Simon Farnsworth
2010-05-10 17:57     ` Andrew Lutomirski
2010-05-10 18:00     ` Jesse Barnes
2010-05-11  8:40       ` Simon Farnsworth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201005101204.54591.simon.farnsworth@onelan.com \
    --to=simon.farnsworth@onelan.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.