[Mesa-dev] [PATCH 4/4] i965: Make GL_TIME_ELAPSED only track time for this context.

Eric Anholt eric at anholt.net
Fri Oct 26 12:20:47 PDT 2012


Kenneth Graunke <kenneth at whitecape.org> writes:

> I like this!

Hmm.  Now I'm wondering if this is the right thing.  The spec isn't very
clear, but here's a sample:

    (5) Should the extension measure total time elapsed between the full
        completion of the BeginQuery and EndQuery commands, or just time
        spent in the graphics library?

    RESOLVED:  This extension will measure the total time elapsed between
    the full completion of these commands.  Future extensions may implement
    a query to determine time elapsed at different stages of the graphics
    pipeline.

I'm starting to think maybe the previous "emit at BeginQuery, emit at
EndQuery, subtract" might be right.  It also would account for time
spent in blits, which the new implementation wouldn't.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20121026/95c376db/attachment.pgp>


More information about the mesa-dev mailing list