summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-10-19apitrace: Add a new "apitrace trace" command.HEADmasterCarl Worth1-0/+157
Currently, this command works only on Linux as it functions by setting the LD_PRELOAD environment variable. (It also does some Linux-specific path manipulations assuming that '/' is the path separator.) It finds the glxtrace.so file by looking first in the configured directory for private binarie (<prefix>/lib/apitrace) and if that's not present, by looking in the directory from which apitrace was run (as best as can be guessed by examining argv[0] and the PATH environment variable).
2011-10-19Add support for linking against talloc.Carl Worth3-0/+77
This isn't used yet, but will be in a subsequent commit, so it's convenient to see here only the changes to the build system to enable the use of talloc.
2011-10-19Add a top-level apitrace program.Carl Worth3-1/+178
This is intended to eventually be a program which will provide access to all apitrace functionality (tracing, trimming, replaying, analyzing, launch the gui, etc.). To start with it implements only the stub "apitrace help" command so there's not any real functionality here yet.
2011-10-19Add a cmake-generated config.h file to hold the private bin directoryCarl Worth3-0/+14
This directory is named APITRACE_PRIVATE_BIN_DIR and will have a value that depends on the install prefix as follows: <prefix>/lib/apitrace This is the directory to which private programs will be installed, (that the user needn't execute directly but that the upcoming apitrace wrapper program will execute for the user).
2011-10-19Change non-executable install directories to include an "apitrace" componentCarl Worth1-2/+2
It's just more polite to put documentation into <prefix>/share/doc/apitrace rather than just dumping it into the top-level <prefix>/doc. Similarly, since glxtrace.so is not a conventional library, it doesn't belong in <prefix>/lib but is well-suited for <prefix>/lib/apitrace.
2011-10-19tracedump: Don't use color when stdout is not a ttyCarl Worth1-3/+1
Previously, if one did an operation like: tracedump file.trace > file.dump The resulting file would be cluttered with escape sequences intending to change color. Rather than requiring the user to find the --no-color option, we can simply not use any color escape sequences when stdout is not a tty.
2011-10-16Generated code formatting improvements.José Fonseca4-19/+19
2011-10-15Cleanup Literal class.José Fonseca5-8/+11
2011-10-15Distinguish between tags and ids.José Fonseca3-51/+78
2011-10-15Remove dead base parameter to literal types.José Fonseca2-4/+4
Unnecessary given we encode it in binary form anyway.
2011-10-15Specify constant array lengths as integers.José Fonseca13-367/+380
2011-10-14Bring some of the virtual-memory-regionsJosé Fonseca12-22/+350
Tracking user memory by querying virtual memory subsystem is not reboust enough for master, but works in many cases, yielding much smaller and efficient traces. This change brings the ability of retracing traces generated by the virtual-memory-regions branch. It also brings more efficient tracing of glFlushMappedBufferRange calls. The trace file version is bumped as a result.
2011-10-14Factor out polymorphic type generated code into functions.José Fonseca1-8/+11
2011-10-14Generate more compact switch statements for polymorphic types.José Fonseca2-5/+19
2011-10-14More polymorphic types in D3D9.José Fonseca2-55/+63
2011-10-13Allow basic specification of polymorphic types.José Fonseca4-141/+189
Unfortunately quite common in GL/D3D APIs. And this will help hanlding better without less hand written code. Just D3D9 for now as guinea pig.
2011-10-13Handle GLenums disguised as GLdoubles too.José Fonseca1-1/+1
2011-10-11Add comment about SetUnhandledExceptionFilterJosé Fonseca1-0/+6
2011-10-11Fix retracing of wglShareLists for currently bound contexts.José Fonseca1-1/+6
2011-10-11Handle null strings in json writer.José Fonseca1-0/+5
2011-10-11Avoid depending on MinGW runtime DLLs.José Fonseca1-0/+16
2011-10-10Add a few comments/links to Cocoa development resources.José Fonseca1-1/+14
2011-10-10Fix dumb typo.José Fonseca1-1/+1
2011-10-10Ignore several harmless CGL calls when rectracing.José Fonseca1-0/+5
2011-10-10Use Cocoa on Mac OS X.José Fonseca3-38/+256
It will enable better control for OpenGL context creation.
2011-10-09s/unknown/unsupported.José Fonseca3-6/+6
2011-10-09Fix MacOSX build.José Fonseca1-2/+11
2011-10-09More GL api spec cleanups.José Fonseca2-110/+113
2011-10-09Cleanup param size computation.José Fonseca3-261/+169
2011-10-09Create contexts with DEBUG_BIT when not benchmarking.José Fonseca5-46/+188
2011-10-09Fix public/private GL symbols.José Fonseca1-362/+405
According to the ABI.
2011-10-09Tweak GLX specs.José Fonseca1-23/+29
2011-10-09Remove the GL_KTX_buffer_region entry points with EXT suffix.José Fonseca1-6/+0
It was a glew bug, fixed in 1.7.0.
2011-10-09Simplify glws class hierarchy.José Fonseca8-172/+164
2011-10-09Fix retracing of several older extensions.José Fonseca2-16/+23
2011-10-09Fix retracing of glGetSeparableFilter w/ pack buffer.José Fonseca1-1/+1
2011-10-09Handle glDraw*BaseInstance.José Fonseca3-2/+15
2011-10-08Uniformize warning output.José Fonseca5-34/+58
2011-10-08Refactor more common retracing code.José Fonseca2-5/+5
2011-10-08Hide retrace_unknown().José Fonseca2-3/+2
2011-10-08Fix MSVC build.José Fonseca2-3/+8
2011-10-08Ignore unexpected end of file in gzread.José Fonseca1-0/+6
zlib-1.2.4 onwards makes it is impossible to read the last block of incomplete gzip traces without this modification.
2011-10-08Upgrade bundled zlib to 1.2.5 again.José Fonseca31-2014/+4012
2011-10-08Universal config.h for snappy.José Fonseca3-71/+51
Should (hopefully) work on all platforms that apitrace builds. And this will make my life easier, as it will allow mixed in/out of source builds flawlessly.
2011-10-08Fix mixed in/out of source builds.José Fonseca1-0/+9
Mixing in/out of source builds is not really a good policy, but something I do quite often due to convenience.
2011-10-08Update glext.hJosé Fonseca2-6/+2
2011-10-08Upgrade bundled snappy to version 1.0.4.José Fonseca9-20/+264
2011-10-07Fix a crash when loading multiple frames at once.Zack Rusin2-6/+20
Happens particularly often when replay has multiple errors in different frames and they're loaded in a rapid-fire fashion.
2011-10-08Preserve const-ness in string comparer.José Fonseca1-1/+1
2011-10-07Use a vector to dispatch calls when retracing.José Fonseca10-1044/+151
As opposed to generated switch tables. Speeds up retracing speed by 8%, and should speed up compilation times too.