summaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)AuthorFilesLines
2013-04-13gltrace,glretrace: A few more tweaks to (no) side-effects flags.José Fonseca1-4/+0
2013-04-12Fix sorting of callFlagTableCarl Worth1-3/+3
Commit 89681160639 inserted three entries in an unsorted position in the list, tripping up an internal check and causing many apitrace operations to abort. Fix this by restoring correct sorting.
2013-04-12trim: Greatly expand the list of calls considered to have no side effectsCarl Worth1-0/+319
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
2013-04-11gui: Handle calls stranded between frames gracefully (issue #117).José Fonseca2-3/+14
Still a bit hackish (those calls will disappear), but at least the gui doesn't crash now.
2013-03-27common: Add more comments.José Fonseca1-4/+28
2013-03-12common: Set flags for D3D11.1 calls too.José Fonseca1-0/+9
2013-03-12glretrace: Fix cpu timings when not measuring gpu times.José Fonseca1-3/+1
2013-03-04Extend profiling tool to support Vsize and Rss memory usage profile per callShuang He3-6/+157
Add one new option -pmem for retrace tool to track Visze and Rss usage during every call Signed-off-by: Shuang He <shuang.he@intel.com> Signed-off-by: José Fonseca <jfonseca@vmware.com>
2013-02-21trace_parser: More comprehensive debug output.José Fonseca1-1/+19
It was useful to diagnose issue #110.
2013-02-01d3dretrace: Recognize IDirect3DDevice9Ex::PresentEx as frame terminator.José Fonseca1-0/+1
2013-01-23os: Cast pthread_create's arg parameter.José Fonseca1-1/+1
2012-12-12d3dretrace: presents may flip so set CALL_FLAG_SWAP_RENDERTARGET flag.José Fonseca1-6/+6
2012-12-11Merge branch 'trim-auto'José Fonseca2-3/+25
Conflicts: cli/CMakeLists.txt
2012-12-07common: Recognize Create* as DirectX call.José Fonseca1-3/+4
2012-12-07Drop API_D3D10/11.José Fonseca1-3/+1
2012-12-07cli: Move pickle.hpp in.José Fonseca1-331/+0
Only used by cli module.
2012-12-07image: Move image code into its own module.José Fonseca5-715/+0
2012-12-07cli: Merge trace_resource.cpp and trace_tools_trace.cpp in.José Fonseca4-459/+0
It's only used by CLI and it will not change.
2012-12-05os: Use CLOCK_MONOTONICJosé Fonseca1-1/+1
2012-12-04inject: Use DLL injection for D3D10+ tracing.José Fonseca1-76/+39
2012-12-01Merge branch 'master' into trim-autoJosé Fonseca4-189/+159
2012-11-27image: Make PNG writing an Image method.José Fonseca2-116/+43
2012-11-27glstate: Use stringstream for holding the temporary PNG images.José Fonseca2-43/+13
2012-11-27d3dretrace: Allow to force a driver type.José Fonseca1-0/+3
2012-11-23dxgitrace: Merge tracing of all DXGI related APIs.José Fonseca1-43/+113
2012-11-22trim: Avoid doing any analysis past the end of the user-specified range.Carl Worth2-3/+25
This doesn't actually change any results, (the dependency analysis already ensures that calls beyond the range won't get included). But this is a nice optimization to prevent wasted time and memory analyzing these calls that are really easy to reject.
2012-11-20Merge branch 'union-type'José Fonseca1-5/+23
2012-11-20dump: Pretty print anonymous structure members.José Fonseca1-5/+23
2012-11-20dxgi: Support tracng DWM process.José Fonseca1-0/+1
2012-11-20cli: Rename replay -> retrace.José Fonseca4-41/+21
For consistency with the current terminology.
2012-11-18dump-images: Execute glretrace from source dir when running uninstalledCarl Worth2-0/+29
Previously, we've had code to carefully find wrappers and scripts relative to an apitrace binary being run from an uninstalled directory. This is extremely useful while testing an experimental feature before installing said experimental code. Similarly, provide a findProgram function to do the same thing for an executable program and use it within "apitrace dump-images" when invoking glretrace.
2012-11-18Move trace::findWrapper to trace_resource.cppCarl Worth3-44/+45
It's not actually used outside of trace_tools_trace.cpp, but it is so similar to the existing trace::findScript in trace_resource.cpp that there are benefits to having them defined in the same file.
2012-11-17pickle: Try to silence clang warnings.José Fonseca1-1/+7
2012-11-16specs: Mark CheckMultisampleQualityLevels as no side effects / verbose.José Fonseca1-0/+3
2012-11-15os: Fix thread copy constructor.José Fonseca1-1/+1
2012-11-14parse: More flags.José Fonseca1-0/+5
2012-11-14parse: recognize more rendering calls.José Fonseca1-0/+17
2012-11-14Merge branch 'modules'José Fonseca1-0/+89
2012-11-14Move static boolOption function to trace::boolOptionCarl Worth2-0/+90
Other programs will also want to be able to parse Boolean command-line options, so we should share this code in order to easily get consistent behavior.
2012-11-11os: DLL abstraction.José Fonseca1-0/+89
2012-11-03Avoid Win32 conditional variables.José Fonseca1-4/+37
Not supported on XP nor WINE.
2012-11-03Remove os::thread_specific_ptrJosé Fonseca1-83/+2
No longer needed.
2012-10-27Cleanup and comment the code.José Fonseca1-0/+17
2012-10-26More efficient synchronous multi-threading.José Fonseca3-167/+1
Mimic a relay race, where only one thread is running at one time. This gracefully degrades to the old behavior for single-threaded traces, and is faster for multi-threaded traces, while still ensuring that the recorded order is preserved.
2012-10-24Use compiler TLS for thread_id tracking.José Fonseca1-11/+7
2012-10-24Silence glXGetFBConfigAttrib calls.José Fonseca1-0/+2
2012-10-24Use compiler TLS support.José Fonseca1-0/+18
Seems to work OK everywhere, provided one uses recent compiler versions.
2012-10-24Fix compilation with clang.José Fonseca1-1/+1
2012-10-24Simplify TLS.José Fonseca1-3/+14
2012-10-23Implement missing threading primitive for Windows.José Fonseca4-60/+33