]> git.cworth.org Git - apitrace/log
apitrace
11 years agoparse: recognize more rendering calls.
José Fonseca [Wed, 14 Nov 2012 11:46:11 +0000 (11:46 +0000)]
parse: recognize more rendering calls.

11 years agoretrace: Allow multiple dumpers to co-exist.
José Fonseca [Wed, 14 Nov 2012 09:17:35 +0000 (09:17 +0000)]
retrace: Allow multiple dumpers to co-exist.

11 years agod3d11: Fix map swizlling.
José Fonseca [Wed, 14 Nov 2012 08:45:58 +0000 (08:45 +0000)]
d3d11: Fix map swizlling.

11 years agoMerge branch 'modules'
José Fonseca [Wed, 14 Nov 2012 07:23:22 +0000 (07:23 +0000)]
Merge branch 'modules'

11 years agoUpdate use/mention of options.
José Fonseca [Wed, 14 Nov 2012 07:21:01 +0000 (07:21 +0000)]
Update use/mention of options.

11 years agoglretrace: Use getopt rather than manual parsing of command-line options
Carl Worth [Sun, 12 Aug 2012 19:44:50 +0000 (12:44 -0700)]
glretrace: Use getopt rather than manual parsing of command-line options

This allows for better consistency with other apitrace command-line
interface. It also provids for several new full-name options where
previously only a single-letter option was available,
(--snapshot-prefix for -s, --verbose for -v, et.).

We use getopt_long_only here to maintain compatibility with the older
style of long options with one dash (-core) as well as providing the
double-dash version )--core).

It would now be quite convenient to regularize the command-line
interface to glretrace in several ways. None of these are performed in
this commit to avoid breaking compatibility with existing scripts,
etc.:

  * Give multi-letter, abbreviated options (--pcpu, etc.) proper
    long-form names (--profile-cpu).

  * Combine related options under a single name (--pcpu and --pgpu
    could be something like --profile=cpu,gpu).

  * Combine options with the same meaning that would never be used
    independently. Snapshot generation and snapshot comparison are
    different modes. Meanwhile, prefix selection and call selection
    should apply identically to either mode. So both modes can use a
    single set of options (--prefix and --calls) rather than having
    separate --snapshot-prefix and --snapshot options.

11 years agoMove static boolOption function to trace::boolOption
Carl Worth [Sun, 12 Aug 2012 23:48:10 +0000 (16:48 -0700)]
Move static boolOption function to trace::boolOption

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.

11 years agowrappers: Cleanup .def files formating.
José Fonseca [Tue, 13 Nov 2012 22:58:07 +0000 (22:58 +0000)]
wrappers: Cleanup .def files formating.

11 years agod3d11: Export DXGI entrypoints.
José Fonseca [Tue, 13 Nov 2012 22:55:40 +0000 (22:55 +0000)]
d3d11: Export DXGI entrypoints.

Some apps use them.

11 years agod2d: Silence MinGW linker warnings.
José Fonseca [Tue, 13 Nov 2012 22:38:34 +0000 (22:38 +0000)]
d2d: Silence MinGW linker warnings.

11 years agoretrace: More diagnostic information.
José Fonseca [Tue, 13 Nov 2012 21:37:42 +0000 (21:37 +0000)]
retrace: More diagnostic information.

11 years agod3dretrace: Handle Software devices.
José Fonseca [Tue, 13 Nov 2012 21:37:24 +0000 (21:37 +0000)]
d3dretrace: Handle Software devices.

11 years agod2d: Make it actually work.
José Fonseca [Tue, 13 Nov 2012 19:53:47 +0000 (19:53 +0000)]
d2d: Make it actually work.

11 years agotrace: Fix thinko on error checking.
José Fonseca [Tue, 13 Nov 2012 11:13:38 +0000 (11:13 +0000)]
trace: Fix thinko on error checking.

11 years agod3dretrace: Merge d3d9 and d3d10 retracing.
José Fonseca [Tue, 13 Nov 2012 09:28:23 +0000 (09:28 +0000)]
d3dretrace: Merge d3d9 and d3d10 retracing.

11 years agod2d1,dwrite: Trace both APIs together.
José Fonseca [Tue, 13 Nov 2012 08:21:15 +0000 (08:21 +0000)]
d2d1,dwrite: Trace both APIs together.

11 years agod3dretrace: Drop retraceModule helper
José Fonseca [Sun, 11 Nov 2012 16:11:26 +0000 (16:11 +0000)]
d3dretrace: Drop retraceModule helper

11 years agod3dretrace: Single retrace for d3d10 and higher
José Fonseca [Sun, 11 Nov 2012 10:05:09 +0000 (10:05 +0000)]
d3dretrace: Single retrace for d3d10 and higher

11 years agod3dretrace: Eliminate dependencies from d3d9state.
José Fonseca [Sun, 11 Nov 2012 09:45:06 +0000 (09:45 +0000)]
d3dretrace: Eliminate dependencies from d3d9state.

11 years agod3dretrace: Allow multiple dispatches in the same file.
José Fonseca [Sun, 11 Nov 2012 09:15:09 +0000 (09:15 +0000)]
d3dretrace: Allow multiple dispatches in the same file.

11 years agoos: DLL abstraction.
José Fonseca [Sun, 11 Nov 2012 08:48:35 +0000 (08:48 +0000)]
os: DLL abstraction.

11 years agogl: Handle ClearBufferData blobs.
José Fonseca [Sun, 11 Nov 2012 00:58:21 +0000 (00:58 +0000)]
gl: Handle ClearBufferData blobs.

11 years agod3dretrace: Eliminate differences between d3d9/d3d10.
José Fonseca [Sun, 11 Nov 2012 00:39:53 +0000 (00:39 +0000)]
d3dretrace: Eliminate differences between d3d9/d3d10.

11 years agoddraw: Remove custom tracer.
José Fonseca [Sun, 11 Nov 2012 00:22:33 +0000 (00:22 +0000)]
ddraw: Remove custom tracer.

11 years agod2d: Eliminate custom tracers.
José Fonseca [Sun, 11 Nov 2012 00:17:00 +0000 (00:17 +0000)]
d2d: Eliminate custom tracers.

11 years agospecs: Allow an API to spread across multiple modules.
José Fonseca [Sun, 11 Nov 2012 00:10:20 +0000 (00:10 +0000)]
specs: Allow an API to spread across multiple modules.

11 years agod3d1x: Cleanup specs.
José Fonseca [Sat, 10 Nov 2012 09:50:10 +0000 (09:50 +0000)]
d3d1x: Cleanup specs.

11 years agospecs: Use StdMethod accurately.
José Fonseca [Sat, 10 Nov 2012 09:29:38 +0000 (09:29 +0000)]
specs: Use StdMethod accurately.

11 years agoMerge branch 'd2d'
José Fonseca [Sat, 10 Nov 2012 09:14:13 +0000 (09:14 +0000)]
Merge branch 'd2d'

11 years agogltrace: Don't use struct for Context.
José Fonseca [Sat, 10 Nov 2012 09:11:42 +0000 (09:11 +0000)]
gltrace: Don't use struct for Context.

11 years agosnappy: Always build with NDEBUG define.
José Fonseca [Sat, 10 Nov 2012 09:11:19 +0000 (09:11 +0000)]
snappy: Always build with NDEBUG define.

11 years agogui: Make FrameDataProvider destructor virtual.
José Fonseca [Sat, 10 Nov 2012 09:11:01 +0000 (09:11 +0000)]
gui: Make FrameDataProvider destructor virtual.

11 years agod3dretrace: Fix MSVC build.
José Fonseca [Thu, 8 Nov 2012 12:29:02 +0000 (12:29 +0000)]
d3dretrace: Fix MSVC build.

11 years agod3d11: Trace UpdateSubresource blobs.
José Fonseca [Thu, 8 Nov 2012 10:47:18 +0000 (10:47 +0000)]
d3d11: Trace UpdateSubresource blobs.

11 years agoretrace: More useful warnings for object mismatches.
José Fonseca [Thu, 8 Nov 2012 10:46:57 +0000 (10:46 +0000)]
retrace: More useful warnings for object mismatches.

11 years agod3d10,d3d11: Rudimentary retrace support.
José Fonseca [Thu, 8 Nov 2012 10:46:03 +0000 (10:46 +0000)]
d3d10,d3d11: Rudimentary retrace support.

Doesn't work often, in practice because dxgi calls are missing from traces.

11 years agod3d10/d3d11: Add sideeffects/internal attributes to specs.
José Fonseca [Thu, 8 Nov 2012 10:24:45 +0000 (10:24 +0000)]
d3d10/d3d11: Add sideeffects/internal attributes to specs.

11 years agoDon't defer arguments when functions fail.
José Fonseca [Thu, 8 Nov 2012 10:23:40 +0000 (10:23 +0000)]
Don't defer arguments when functions fail.

11 years agod3dretrace: Basic d3d10 support.
José Fonseca [Wed, 7 Nov 2012 20:00:46 +0000 (20:00 +0000)]
d3dretrace: Basic d3d10 support.

11 years agod3dretrace: Add d3d9 prefix to d3d9 specific files.
José Fonseca [Wed, 7 Nov 2012 19:31:20 +0000 (19:31 +0000)]
d3dretrace: Add d3d9 prefix to d3d9 specific files.

11 years agod3d11: Trace initial data blobs.
José Fonseca [Wed, 7 Nov 2012 19:22:20 +0000 (19:22 +0000)]
d3d11: Trace initial data blobs.

11 years agod3d1x: Rename d3d10shader -> d3dcommonshader.
José Fonseca [Wed, 7 Nov 2012 19:15:39 +0000 (19:15 +0000)]
d3d1x: Rename d3d10shader -> d3dcommonshader.

11 years agod3d11: Catch up with d3d10.
José Fonseca [Wed, 7 Nov 2012 19:11:20 +0000 (19:11 +0000)]
d3d11: Catch up with d3d10.

11 years agod3d10: Fallback to D3D10DisassembleShader.
José Fonseca [Wed, 7 Nov 2012 19:10:31 +0000 (19:10 +0000)]
d3d10: Fallback to D3D10DisassembleShader.

Should be always present.

11 years agodxva: Fix build for older dxsdk
José Fonseca [Wed, 7 Nov 2012 10:20:28 +0000 (10:20 +0000)]
dxva: Fix build for older dxsdk

11 years agod3d10/d3d11: Correct out pointers.
José Fonseca [Mon, 5 Nov 2012 18:55:40 +0000 (18:55 +0000)]
d3d10/d3d11: Correct out pointers.

11 years agoMerge branch 'master' into d2d
José Fonseca [Wed, 7 Nov 2012 07:20:06 +0000 (07:20 +0000)]
Merge branch 'master' into d2d

11 years agodxva: Eliminate the globals hack.
José Fonseca [Tue, 6 Nov 2012 00:16:28 +0000 (00:16 +0000)]
dxva: Eliminate the globals hack.

11 years agoMerge branch 'master' into dxva
José Fonseca [Mon, 5 Nov 2012 23:38:09 +0000 (23:38 +0000)]
Merge branch 'master' into dxva

Conflicts:
common/trace_parser_flags.cpp

11 years agoFix dxgi specs.
José Fonseca [Sun, 4 Nov 2012 23:54:27 +0000 (23:54 +0000)]
Fix dxgi specs.

11 years agod3d10: Trace UpdateSubResource blobs.
José Fonseca [Sun, 4 Nov 2012 23:37:14 +0000 (23:37 +0000)]
d3d10: Trace UpdateSubResource blobs.

11 years agod3d10trace: Fix 1D textures size calculations.
José Fonseca [Sun, 4 Nov 2012 11:33:56 +0000 (11:33 +0000)]
d3d10trace: Fix 1D textures size calculations.

11 years agod3d10: Trace blobs for initial data.
José Fonseca [Sun, 4 Nov 2012 11:07:45 +0000 (11:07 +0000)]
d3d10: Trace blobs for initial data.

11 years agod3d10: Take mip level in consideration.
José Fonseca [Sun, 4 Nov 2012 10:03:43 +0000 (10:03 +0000)]
d3d10: Take mip level in consideration.

11 years agoTrace d3d10.x maps.
José Fonseca [Sat, 3 Nov 2012 18:44:36 +0000 (18:44 +0000)]
Trace d3d10.x maps.

12 years agoRename d3dsize.hpp to d3d9size.hpp
José Fonseca [Sat, 3 Nov 2012 16:58:34 +0000 (16:58 +0000)]
Rename d3dsize.hpp to d3d9size.hpp

12 years agoAvoid uint8_t.
José Fonseca [Sat, 3 Nov 2012 16:50:38 +0000 (16:50 +0000)]
Avoid uint8_t.

Use GLubyte instead. Should fix MSVC build failure.

12 years agoDon't rely on D3D private data mechanism.
José Fonseca [Sat, 3 Nov 2012 12:09:17 +0000 (12:09 +0000)]
Don't rely on D3D private data mechanism.

12 years agoAvoid Win32 conditional variables.
José Fonseca [Sat, 3 Nov 2012 12:04:46 +0000 (12:04 +0000)]
Avoid Win32 conditional variables.

Not supported on XP nor WINE.

12 years agoRemove os::thread_specific_ptr
José Fonseca [Sat, 3 Nov 2012 10:27:22 +0000 (10:27 +0000)]
Remove os::thread_specific_ptr

No longer needed.

12 years agoCleanup shadow buffers.
José Fonseca [Sat, 3 Nov 2012 10:13:17 +0000 (10:13 +0000)]
Cleanup shadow buffers.

- More defensive code.
- Use _glFoo instead of glFoo to avoid nested calls in the trace
- Handle glMapBufferOES/UnmapBufferOES too.

12 years agogles: track gl buffer contents in a shadow buffer
Imre Deak [Tue, 24 Apr 2012 11:06:48 +0000 (14:06 +0300)]
gles: track gl buffer contents in a shadow buffer

This is needed since GLES/GLES2 don't support either glGetBufferSubData
or glMapBufferOES. At the moment apitrace is only interested in
GL_ELEMENT_ARRAY_BUFFER contents so don't track buffers of other types.

Signed-off-by: Imre Deak <imre.deak@intel.com>
12 years agoSupport grayscale PNM in retracediff.py
José Fonseca [Tue, 30 Oct 2012 15:54:04 +0000 (15:54 +0000)]
Support grayscale PNM in retracediff.py

12 years agoFix QJSON linkage on Windows builds.
José Fonseca [Tue, 30 Oct 2012 15:05:46 +0000 (15:05 +0000)]
Fix QJSON linkage on Windows builds.

Re-add the empy QJSON_EXPORT define, but this time ensure it is defined
when compiling qapitrace as well.

12 years agoUpdate documentation for D3DPERF_XXX
José Fonseca [Tue, 30 Oct 2012 10:57:28 +0000 (10:57 +0000)]
Update documentation for D3DPERF_XXX

12 years agoMention EGL cases on readme.
José Fonseca [Tue, 30 Oct 2012 10:51:39 +0000 (10:51 +0000)]
Mention EGL cases on readme.

12 years agoPrint a clear message when X11 is not found (to help debug issue #99)
José Fonseca [Sun, 28 Oct 2012 10:48:22 +0000 (10:48 +0000)]
Print a clear message when X11 is not found (to help debug issue #99)

12 years agoDump depth textures as a single image (issue #97).
José Fonseca [Sat, 27 Oct 2012 16:54:58 +0000 (17:54 +0100)]
Dump depth textures as a single image (issue #97).

Not ideal, but better than nothing until we replace PNG by something
else.

12 years agoDump symbolic aliases for internalFormats 1..4.
José Fonseca [Sat, 27 Oct 2012 16:53:49 +0000 (17:53 +0100)]
Dump symbolic aliases for internalFormats 1..4.

12 years agoDon't mess with QJSON_EXPORT
José Fonseca [Sat, 27 Oct 2012 14:57:41 +0000 (15:57 +0100)]
Don't mess with QJSON_EXPORT

12 years agoDump thread ids on retrace.
José Fonseca [Sat, 27 Oct 2012 12:59:42 +0000 (13:59 +0100)]
Dump thread ids on retrace.

12 years agoCleanup and comment the code.
José Fonseca [Sat, 27 Oct 2012 12:42:17 +0000 (13:42 +0100)]
Cleanup and comment the code.

12 years agoMerge branch 'master' into mt-trace
José Fonseca [Sat, 27 Oct 2012 11:31:59 +0000 (12:31 +0100)]
Merge branch 'master' into mt-trace

12 years agoDon't destroy current EGL context.
José Fonseca [Sat, 27 Oct 2012 11:30:20 +0000 (12:30 +0100)]
Don't destroy current EGL context.

12 years agoAlways use bundled QJson.
José Fonseca [Sat, 27 Oct 2012 09:13:58 +0000 (10:13 +0100)]
Always use bundled QJson.

In order to support NaN/Infite.

12 years agoUpdate bundled QJson
José Fonseca [Sat, 27 Oct 2012 09:13:08 +0000 (10:13 +0100)]
Update bundled QJson

To upstream commit 11e743c61e18e49d77c94e9568ccb6f0c2b4f0ac.

12 years agoAllow NaN, Infinity in JSON.
José Fonseca [Fri, 26 Oct 2012 22:45:35 +0000 (23:45 +0100)]
Allow NaN, Infinity in JSON.

Non-standard but widely support (json.py, qjson)

12 years agoMore efficient synchronous multi-threading.
José Fonseca [Fri, 26 Oct 2012 17:13:10 +0000 (18:13 +0100)]
More efficient synchronous multi-threading.

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.

12 years agoDump GL_TEXTURE_STENCIL_SIZE state.
José Fonseca [Fri, 26 Oct 2012 12:45:59 +0000 (13:45 +0100)]
Dump GL_TEXTURE_STENCIL_SIZE state.

12 years agoDump GL_TEXTURE_STENCIL_SIZE state.
José Fonseca [Fri, 26 Oct 2012 12:45:59 +0000 (13:45 +0100)]
Dump GL_TEXTURE_STENCIL_SIZE state.

12 years agoDon't let android cmake toolchain screw up the binary output path.
José Fonseca [Thu, 25 Oct 2012 12:35:58 +0000 (13:35 +0100)]
Don't let android cmake toolchain screw up the binary output path.

12 years agoMerge remote-tracking branch 'github/master' into mt-trace
José Fonseca [Thu, 25 Oct 2012 11:28:32 +0000 (12:28 +0100)]
Merge remote-tracking branch 'github/master' into mt-trace

Conflicts:
retrace/glws_cocoa.mm
wrappers/gltrace_state.cpp

12 years agoDisassemble D3D10.1 shaders too.
José Fonseca [Thu, 25 Oct 2012 11:17:39 +0000 (12:17 +0100)]
Disassemble D3D10.1 shaders too.

12 years agoIgnore CGLUpdateContext
José Fonseca [Wed, 24 Oct 2012 18:47:02 +0000 (19:47 +0100)]
Ignore CGLUpdateContext

12 years agoSilence glXGetFBConfigAttrib calls.
José Fonseca [Wed, 24 Oct 2012 15:41:53 +0000 (16:41 +0100)]
Silence glXGetFBConfigAttrib calls.

12 years agoRemove supurious struct keyword.
José Fonseca [Wed, 24 Oct 2012 13:04:35 +0000 (14:04 +0100)]
Remove supurious struct keyword.

12 years agoKeep the view pointer in the drawable.
José Fonseca [Wed, 24 Oct 2012 12:47:43 +0000 (13:47 +0100)]
Keep the view pointer in the drawable.

12 years agoDon't dump ignored functions when retracing.
José Fonseca [Wed, 24 Oct 2012 12:34:27 +0000 (13:34 +0100)]
Don't dump ignored functions when retracing.

12 years agoIgnore OpenGL core 3.2 requirement on Windows.
José Fonseca [Wed, 24 Oct 2012 12:34:03 +0000 (13:34 +0100)]
Ignore OpenGL core 3.2 requirement on Windows.

Better than aborting, until it is supported.

12 years agoHandle visual creation errors.
José Fonseca [Wed, 24 Oct 2012 11:30:46 +0000 (12:30 +0100)]
Handle visual creation errors.

12 years agoFix creation of shared WGL contexts.
José Fonseca [Tue, 23 Oct 2012 19:16:04 +0000 (20:16 +0100)]
Fix creation of shared WGL contexts.

12 years agoDon't show pbuffers in windows.
José Fonseca [Mon, 22 Oct 2012 17:55:52 +0000 (18:55 +0100)]
Don't show pbuffers in windows.

They are often very numerous, making it hard to see the final rendering.

12 years agoBe nice to Eclipse error message parser.
José Fonseca [Fri, 19 Oct 2012 17:43:46 +0000 (18:43 +0100)]
Be nice to Eclipse error message parser.

12 years agoDisassemble D3D10.1 shaders too.
José Fonseca [Thu, 25 Oct 2012 11:17:39 +0000 (12:17 +0100)]
Disassemble D3D10.1 shaders too.

12 years agoMake code more robust against multiply bound CGL contexts.
José Fonseca [Wed, 24 Oct 2012 19:04:54 +0000 (20:04 +0100)]
Make code more robust against multiply bound CGL contexts.

As it is allowed by the CGL API.

12 years agoIgnore CGLUpdateContext
José Fonseca [Wed, 24 Oct 2012 18:47:02 +0000 (19:47 +0100)]
Ignore CGLUpdateContext

12 years agoUse compiler TLS for GL tracing.
José Fonseca [Wed, 24 Oct 2012 15:48:55 +0000 (16:48 +0100)]
Use compiler TLS for GL tracing.

12 years agoUse compiler TLS for thread_id tracking.
José Fonseca [Wed, 24 Oct 2012 15:45:53 +0000 (16:45 +0100)]
Use compiler TLS for thread_id tracking.

12 years agoFix current context tracking.
José Fonseca [Wed, 24 Oct 2012 15:42:22 +0000 (16:42 +0100)]
Fix current context tracking.

12 years agoSilence glXGetFBConfigAttrib calls.
José Fonseca [Wed, 24 Oct 2012 15:41:53 +0000 (16:41 +0100)]
Silence glXGetFBConfigAttrib calls.