]> git.notmuchmail.org Git - apitrace/log
apitrace
11 years agod3dretrace: Dump D3D11 images/shaders too.
José Fonseca [Tue, 4 Dec 2012 13:04:14 +0000 (13:04 +0000)]
d3dretrace: Dump D3D11 images/shaders too.

11 years agod3dstate: Fix MSVC build.
José Fonseca [Wed, 28 Nov 2012 21:17:48 +0000 (21:17 +0000)]
d3dstate: Fix MSVC build.

11 years agospecs: Minor tweaks to d3d7-9 specs.
José Fonseca [Wed, 28 Nov 2012 21:17:30 +0000 (21:17 +0000)]
specs: Minor tweaks to d3d7-9 specs.

11 years agod3dretrace: Dump d3d10 geometry shaders.
José Fonseca [Wed, 28 Nov 2012 17:24:42 +0000 (17:24 +0000)]
d3dretrace: Dump d3d10 geometry shaders.

11 years agod3d10state: Dump shaders.
José Fonseca [Wed, 28 Nov 2012 15:06:22 +0000 (15:06 +0000)]
d3d10state: Dump shaders.

11 years agod3d10state: Dump rendertargets.
José Fonseca [Wed, 28 Nov 2012 12:56:01 +0000 (12:56 +0000)]
d3d10state: Dump rendertargets.

11 years agogui: Take all state in consideration when determining it is empty.
José Fonseca [Wed, 28 Nov 2012 10:45:08 +0000 (10:45 +0000)]
gui: Take all state in consideration when determining it is empty.

11 years agoretrace: Factor out image json dumping into json.cpp.
José Fonseca [Wed, 28 Nov 2012 09:58:09 +0000 (09:58 +0000)]
retrace: Factor out image json dumping into json.cpp.

11 years agoretrace: Move JSON write implementation to a .cpp file.
José Fonseca [Wed, 28 Nov 2012 09:44:01 +0000 (09:44 +0000)]
retrace: Move JSON write implementation to a .cpp file.

11 years agostate: Drop several unused json image members.
José Fonseca [Tue, 27 Nov 2012 20:58:24 +0000 (20:58 +0000)]
state: Drop several unused json image members.

11 years agoimage: Make PNG writing an Image method.
José Fonseca [Tue, 27 Nov 2012 20:50:01 +0000 (20:50 +0000)]
image: Make PNG writing an Image method.

11 years agoglstate: Use stringstream for holding the temporary PNG images.
José Fonseca [Tue, 27 Nov 2012 20:31:42 +0000 (20:31 +0000)]
glstate: Use stringstream for holding the temporary PNG images.

11 years agod3dretrace: Release d3d9 shader objects.
José Fonseca [Tue, 27 Nov 2012 20:01:29 +0000 (20:01 +0000)]
d3dretrace: Release d3d9 shader objects.

11 years agod3d10: Ignore D3D10CreateBlob.
José Fonseca [Tue, 27 Nov 2012 20:01:05 +0000 (20:01 +0000)]
d3d10: Ignore D3D10CreateBlob.

Not really interesting, already handled by the stubs.

11 years agod3dretrace: Backout temporary debugging code.
José Fonseca [Tue, 27 Nov 2012 19:59:59 +0000 (19:59 +0000)]
d3dretrace: Backout temporary debugging code.

11 years agod3dtrace,d3dretrace: Remove D3DX9 headers.
José Fonseca [Tue, 27 Nov 2012 18:58:53 +0000 (18:58 +0000)]
d3dtrace,d3dretrace: Remove D3DX9 headers.

No longer needed, and D3DX is deprecated upstream.

11 years agod3dtrace,d3dretrace: Move shader disassembly helpers to common location.
José Fonseca [Tue, 27 Nov 2012 15:25:21 +0000 (15:25 +0000)]
d3dtrace,d3dretrace: Move shader disassembly helpers to common location.

11 years agospecs: Drop d3d10effect and d3d10shader.
José Fonseca [Tue, 27 Nov 2012 15:22:01 +0000 (15:22 +0000)]
specs: Drop d3d10effect and d3d10shader.

Not really used or particularly interesting.

11 years agoretracediff: Allow passing driver and arbitrary options to retrace.
José Fonseca [Tue, 27 Nov 2012 13:11:21 +0000 (13:11 +0000)]
retracediff: Allow passing driver and arbitrary options to retrace.

11 years agod3dretrace: Allow to force a driver type.
José Fonseca [Tue, 27 Nov 2012 12:19:45 +0000 (12:19 +0000)]
d3dretrace: Allow to force a driver type.

11 years agod3dstate: Fix thinko on stage resource MiscFlags.
José Fonseca [Tue, 27 Nov 2012 11:36:19 +0000 (11:36 +0000)]
d3dstate: Fix thinko on stage resource MiscFlags.

11 years agoddraw: Fix DDPIXELFORMAT.MultiSampleCaps spec.
José Fonseca [Mon, 26 Nov 2012 19:47:45 +0000 (19:47 +0000)]
ddraw: Fix DDPIXELFORMAT.MultiSampleCaps spec.

11 years agod3dtrace: Prevent clashes in method signature IDs.
José Fonseca [Mon, 26 Nov 2012 19:47:26 +0000 (19:47 +0000)]
d3dtrace: Prevent clashes in method signature IDs.

Methods from base classes had the same ID in all derived classes.

11 years agod3dretrace: Prevent ScopedAllocator::alloc<D3DPRESENT_PARAMETERS> clash.
José Fonseca [Mon, 26 Nov 2012 19:45:54 +0000 (19:45 +0000)]
d3dretrace: Prevent ScopedAllocator::alloc<D3DPRESENT_PARAMETERS> clash.

D3D8 and D3D9 have different definitions of the D3DPRESENT_PARAMETERS.
This happens with other types, so the only solution is to stop using
templates here.

11 years agocmake: Fix MSVC build.
José Fonseca [Mon, 26 Nov 2012 15:58:06 +0000 (15:58 +0000)]
cmake: Fix MSVC build.

Ensure that newer DirectX headers are included before old versions.

11 years agod3dretrace: Basic d3d8 support.
José Fonseca [Sat, 24 Nov 2012 13:04:42 +0000 (13:04 +0000)]
d3dretrace: Basic d3d8 support.

11 years agod3d8trace: Further tweaks to the spec.
José Fonseca [Sat, 24 Nov 2012 12:33:52 +0000 (12:33 +0000)]
d3d8trace: Further tweaks to the spec.

11 years agod3dretrace: Use consistent filenames.
José Fonseca [Sat, 24 Nov 2012 09:30:50 +0000 (09:30 +0000)]
d3dretrace: Use consistent filenames.

11 years agodxgitrace: Fix build when recent d3d10 versions are not available.
José Fonseca [Fri, 23 Nov 2012 19:30:03 +0000 (19:30 +0000)]
dxgitrace: Fix build when recent d3d10 versions are not available.

11 years agotrace: Silence object wrap debug messages.
José Fonseca [Fri, 23 Nov 2012 17:35:52 +0000 (17:35 +0000)]
trace: Silence object wrap debug messages.

11 years agod3dtrace: Smarter tracking of interface wrappers.
José Fonseca [Fri, 23 Nov 2012 17:02:48 +0000 (17:02 +0000)]
d3dtrace: Smarter tracking of interface wrappers.

11 years agod3dretrace: Try to match the window size in the dxgi traces.
José Fonseca [Fri, 23 Nov 2012 17:01:04 +0000 (17:01 +0000)]
d3dretrace: Try to match the window size in the dxgi traces.

11 years agotrace: Catch attempts to call unimplemented methods.
José Fonseca [Fri, 23 Nov 2012 15:33:40 +0000 (15:33 +0000)]
trace: Catch attempts to call unimplemented methods.

11 years agodxgitrace: Merge tracing of all DXGI related APIs.
José Fonseca [Fri, 23 Nov 2012 14:34:29 +0000 (14:34 +0000)]
dxgitrace: Merge tracing of all DXGI related APIs.

11 years agoretrace: Dump call number on exceptions.
José Fonseca [Thu, 22 Nov 2012 14:46:06 +0000 (14:46 +0000)]
retrace: Dump call number on exceptions.

11 years agoretrace: Just warn in face of an unexpected non-null object.
José Fonseca [Wed, 21 Nov 2012 21:02:21 +0000 (21:02 +0000)]
retrace: Just warn in face of an unexpected non-null object.

11 years agod3d11: Set out flag for output object arrays.
José Fonseca [Wed, 21 Nov 2012 21:01:05 +0000 (21:01 +0000)]
d3d11: Set out flag for output object arrays.

11 years agodocs: Eliminate most references to glretrace.
José Fonseca [Wed, 21 Nov 2012 09:19:19 +0000 (09:19 +0000)]
docs: Eliminate most references to glretrace.

11 years agocli_retrace: Forward all options to retrace program.
José Fonseca [Wed, 21 Nov 2012 09:13:32 +0000 (09:13 +0000)]
cli_retrace: Forward all options to retrace program.

11 years agocli: Auto-detect retrace for dump-images too.
José Fonseca [Wed, 21 Nov 2012 08:58:42 +0000 (08:58 +0000)]
cli: Auto-detect retrace for dump-images too.

11 years agocli: Guess the retrace excutable adequate for the trace.
José Fonseca [Wed, 21 Nov 2012 01:18:49 +0000 (01:18 +0000)]
cli: Guess the retrace excutable adequate for the trace.

11 years agod3d10,d3d11: Take the UpdateSubresource box in full consideration.
José Fonseca [Tue, 20 Nov 2012 21:17:56 +0000 (21:17 +0000)]
d3d10,d3d11: Take the UpdateSubresource box in full consideration.

11 years agoMerge branch 'union-type'
José Fonseca [Tue, 20 Nov 2012 17:04:39 +0000 (17:04 +0000)]
Merge branch 'union-type'

11 years agodump: Pretty print anonymous structure members.
José Fonseca [Tue, 20 Nov 2012 17:04:24 +0000 (17:04 +0000)]
dump: Pretty print anonymous structure members.

11 years agod3d10/d3d11: Complete union support.
José Fonseca [Tue, 20 Nov 2012 17:03:43 +0000 (17:03 +0000)]
d3d10/d3d11: Complete union support.

11 years agod3d10: Add missing flags.
José Fonseca [Tue, 20 Nov 2012 15:23:14 +0000 (15:23 +0000)]
d3d10: Add missing flags.

11 years agodxgi: Support tracng DWM process.
José Fonseca [Tue, 20 Nov 2012 14:48:31 +0000 (14:48 +0000)]
dxgi: Support tracng DWM process.

11 years agod3dretrace: Dump d3d10 snapshots too.
José Fonseca [Tue, 20 Nov 2012 14:47:03 +0000 (14:47 +0000)]
d3dretrace: Dump d3d10 snapshots too.

11 years agod3d10/d3d10_1: Expose DXGI entrypoints.
José Fonseca [Mon, 19 Nov 2012 19:30:31 +0000 (19:30 +0000)]
d3d10/d3d10_1: Expose DXGI entrypoints.

11 years agospecs: Initial attempt to support unions.
José Fonseca [Tue, 20 Nov 2012 11:08:08 +0000 (11:08 +0000)]
specs: Initial attempt to support unions.

11 years agod3d10/d3d11: Use consistent members for buffer views.
José Fonseca [Tue, 20 Nov 2012 10:47:10 +0000 (10:47 +0000)]
d3d10/d3d11: Use consistent members for buffer views.

11 years agocli: Rename replay -> retrace.
José Fonseca [Sun, 18 Nov 2012 15:45:27 +0000 (15:45 +0000)]
cli: Rename replay -> retrace.

For consistency with the current terminology.

11 years agocli: Rename replay -> retrace.
José Fonseca [Sun, 18 Nov 2012 15:45:27 +0000 (15:45 +0000)]
cli: Rename replay -> retrace.

For consistency with the current terminology.

11 years agocli: Add a simple "apitrace replay" sub-command.
Carl Worth [Mon, 20 Aug 2012 16:45:27 +0000 (09:45 -0700)]
cli: Add a simple "apitrace replay" sub-command.

This calls out to glretrace in order to replay a trace. Currently it
only supports the -w,--wait option, (and not yet any of the profiling
support).

With this command and the existing "apitrace dump-images", we're quite
close to being able to relegate glretrace to an implementation detail
used by the apitrace program, (such that soon, it won't be necessary
to provide glretrace on the user's PATH).

11 years agodump-images: Execute glretrace from source dir when running uninstalled
Carl Worth [Sun, 12 Aug 2012 23:36:48 +0000 (16:36 -0700)]
dump-images: Execute glretrace from source dir when running uninstalled

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.

11 years agoMove trace::findWrapper to trace_resource.cpp
Carl Worth [Sun, 12 Aug 2012 23:01:09 +0000 (16:01 -0700)]
Move trace::findWrapper to trace_resource.cpp

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.

11 years agod3d: And d3dcommonsize.hpp too.
José Fonseca [Sun, 18 Nov 2012 11:57:56 +0000 (11:57 +0000)]
d3d: And d3dcommonsize.hpp too.

sigh..

11 years agod3d8: Add missing d3d8size.hpp file.
José Fonseca [Sun, 18 Nov 2012 10:58:56 +0000 (10:58 +0000)]
d3d8: Add missing d3d8size.hpp file.

11 years agod3d8: Update specs to match d3d9.
José Fonseca [Sun, 18 Nov 2012 09:21:48 +0000 (09:21 +0000)]
d3d8: Update specs to match d3d9.

And vice versa.

11 years agopickle: Try to silence clang warnings.
José Fonseca [Sat, 17 Nov 2012 11:44:43 +0000 (11:44 +0000)]
pickle: Try to silence clang warnings.

11 years agogltrace: Rely on polymorphism for indices instead of special case.
José Fonseca [Sat, 17 Nov 2012 11:44:28 +0000 (11:44 +0000)]
gltrace: Rely on polymorphism for indices instead of special case.

11 years agogltrace: Respect length argument in glShaderSource(ARB)
José Fonseca [Sat, 17 Nov 2012 10:18:08 +0000 (10:18 +0000)]
gltrace: Respect length argument in glShaderSource(ARB)

11 years agotracediff: Merge tracediff2.py and tracediff.py
José Fonseca [Fri, 16 Nov 2012 22:19:10 +0000 (22:19 +0000)]
tracediff: Merge tracediff2.py and tracediff.py

11 years agodoc: Update examples to use call 0.
José Fonseca [Fri, 16 Nov 2012 21:29:40 +0000 (21:29 +0000)]
doc: Update examples to use call 0.

Call numbers start from 0, but examples gave the impression it started
from call 1.

11 years agod3d11: Ensure IDXGIFactory1 interface is not forgotten.
José Fonseca [Fri, 16 Nov 2012 20:06:20 +0000 (20:06 +0000)]
d3d11: Ensure IDXGIFactory1 interface is not forgotten.

11 years agospecs: Mark CheckMultisampleQualityLevels as no side effects / verbose.
José Fonseca [Fri, 16 Nov 2012 20:05:54 +0000 (20:05 +0000)]
specs: Mark CheckMultisampleQualityLevels as no side effects / verbose.

11 years agod3d11: Several spec fixes.
José Fonseca [Fri, 16 Nov 2012 19:13:20 +0000 (19:13 +0000)]
d3d11: Several spec fixes.

11 years agoretrace: Use different methods for writing int/floats.
José Fonseca [Thu, 15 Nov 2012 13:36:09 +0000 (13:36 +0000)]
retrace: Use different methods for writing int/floats.

More efficient code, less compiler warnings.

11 years agogui: Silence unused var warning.
José Fonseca [Thu, 15 Nov 2012 13:35:22 +0000 (13:35 +0000)]
gui: Silence unused var warning.

11 years agoos: Fix thread copy constructor.
José Fonseca [Thu, 15 Nov 2012 13:35:08 +0000 (13:35 +0000)]
os: Fix thread copy constructor.

11 years agoretrace: Fix MSVC build.
José Fonseca [Wed, 14 Nov 2012 14:47:51 +0000 (14:47 +0000)]
retrace: Fix MSVC build.

11 years agod3dretrace: More robust against DXGI missing calls.
José Fonseca [Wed, 14 Nov 2012 14:02:35 +0000 (14:02 +0000)]
d3dretrace: More robust against DXGI missing calls.

11 years agoparse: More flags.
José Fonseca [Wed, 14 Nov 2012 14:01:56 +0000 (14:01 +0000)]
parse: More flags.

11 years agod3dretrace: Basic D3D11 snap-shooting.
José Fonseca [Wed, 14 Nov 2012 11:46:58 +0000 (11:46 +0000)]
d3dretrace: Basic D3D11 snap-shooting.

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.