]> git.cworth.org Git - apitrace/commit
trim: Greatly expand the list of calls considered to have no side effects
authorCarl Worth <cworth@cworth.org>
Fri, 15 Feb 2013 02:09:14 +0000 (18:09 -0800)
committerCarl Worth <cworth@cworth.org>
Fri, 12 Apr 2013 21:02:57 +0000 (14:02 -0700)
commit896811606399ebc083ff6304b7f629a93830ba0d
tree7dc9c248a3edc6e0cd2f503ecff20a9cb77fb62f
parent6ad9d816975cf8ee94da166e95082b757ff78d49
trim: Greatly expand the list of calls considered to have no side effects

The list of calls added here with the NO_SIDE_EFFECTS flag was
obtained from the existing specs/glapi.py file, (most[*] calls with
"sideeffects=False").

It's a bit unfortunate that we have this duplication of information in
the source tree, (two different lists of calls with no side
effects). But that duplication was already present before this
commit. This commit merely brings this list into sync with the other.

[*] The following calls are not added here in spite of having
sideeffects=False in glapi.py:

    glGetTextureImageEXT
    glGetnCompressedTexImageARB
    glGetnColorTableARB

José reports that the above calls can have side effects when PBOs are
on, (and he plans to update glapi.py).

Then, while the following calls may not affect traditional "GL state"
they do have side effects that can be observed by the user. And these
are debugging side effects that can be very important when
replaying/analyzing a trace. For example, debug message or string
markers are used to decorate different portions of the graphics
command stream with user-supplied data that exists nowhere else. So
these calls are not considered as having no side effects:

    glDebugMessageControl
    glDebugMessageControlARB
    glDebugMessageEnableAMD
    glDebugMessageInsert
    glDebugMessageInsertAMD
    glDebugMessageInsertARB
    glPopDebugGroup
    glPushDebugGroup
    glStringMarkerGREMEDY
common/trace_parser_flags.cpp