]>
git.notmuchmail.org Git - apitrace/log
José Fonseca [Fri, 22 Feb 2013 16:38:11 +0000 (16:38 +0000)]
Update news for new nomenclature.
Carl Worth [Mon, 11 Feb 2013 22:56:15 +0000 (14:56 -0800)]
cli: Add an alias mechanism and alias "retrace" to "replay"
This allows any existing scripts calling "apitrace retrace" to
continue to work.
Carl Worth [Mon, 11 Feb 2013 21:49:02 +0000 (13:49 -0800)]
cli: Rename "apitrace retrace" to "apitrace replay".
After some debate on the mailing list, the consensus favors the name
"replay" for this operation. Update the documentation in
README.markdown to match.
José Fonseca [Fri, 22 Feb 2013 15:00:26 +0000 (15:00 +0000)]
dxgitrace: Generalize the swapchain size for the entry functions too.
José Fonseca [Fri, 22 Feb 2013 10:47:31 +0000 (10:47 +0000)]
d3dretrace: Force DWM traces to run on a window.
Fullscreen is hard to debug.
José Fonseca [Fri, 22 Feb 2013 10:24:31 +0000 (10:24 +0000)]
Serialize swapchain dimensions.
José Fonseca [Fri, 22 Feb 2013 10:23:51 +0000 (10:23 +0000)]
trace: Unwrap all args before serializing them.
José Fonseca [Fri, 22 Feb 2013 10:08:46 +0000 (10:08 +0000)]
trace: Remove unused Trace::unwrapRet method.
José Fonseca [Fri, 22 Feb 2013 09:41:54 +0000 (09:41 +0000)]
inject: Always output warning messages to debug output.
José Fonseca [Fri, 22 Feb 2013 09:40:30 +0000 (09:40 +0000)]
inject: Add define to use environment var instead of shared memory.
José Fonseca [Tue, 19 Feb 2013 13:29:26 +0000 (13:29 +0000)]
d3dretrace: Cope with _MAP_FLAG_DO_NOT_WAIT flags.
If the map succeeded in the original trace, then we must wait.
José Fonseca [Tue, 19 Feb 2013 13:28:24 +0000 (13:28 +0000)]
d3dretrace: Replay IUnknown::AddRef/Release methods faithfully.
Several D3D APIs (especially recent ones) keep track of reference counts
and will ensure errors if reference counting is not properly done.
For example, IDXGISwapChain::ResizeBuffers will fail if there are
outstanding references to its buffers.
José Fonseca [Thu, 21 Feb 2013 13:08:13 +0000 (13:08 +0000)]
trace_parser: More comprehensive debug output.
It was useful to diagnose issue #110.
Carl Worth [Tue, 28 Aug 2012 18:45:52 +0000 (11:45 -0700)]
replay: Support applications mixing glCreateProgramObjectARB and glUseProgram
As is known to happen with OpenGL, there are many more than one ways
to do the same thing. In this case, one can create a program
(glCreateProgram) or a program object (glCreateProgramObjectARB) along
with many similar pairs of functions.
In fact, a single application might even mix these two approaches,
(for example, calling glCreateProgramObjectARB and then calling
glUseProgram rather than glUseProgramObjectARB).
Historically, glretrace could fail with such mixed usage. The calls
into the ObjectARB function would go through _handleARB_map while the
other calls would go through _program_map, so after mixed calls the
desired object would not be found in the referenced map.
Making mixed usage work requires merging both _program_map and
_shader_map together with _handleARB map. This is correct for any
OpenGL implementation which supports the GL_ARB_shader_objects
extension, since there is no way to implement this extension correctly
without having shaders and programs in the same namespace.
However, we carefully maintain separate _shader_map and _program_map
for an OpenGL implementation not supporting GL_ARB_shader_objects. In
this case, it's not possible for an application to mix usage (since
none of the ObjectARB functions are guaranteed to exist). And it's
also possible for the implementation to provide separate namespaces
for shaders and programs, so they each need their own map.
José Fonseca [Tue, 12 Feb 2013 16:19:23 +0000 (16:19 +0000)]
Get DWM traces working.
Sort-of -- shared resources still don't work correctly.
José Fonseca [Fri, 8 Feb 2013 13:47:40 +0000 (13:47 +0000)]
specs/dxva: Try to define DXVA2_PVP_SETKEY.
Carl Worth [Fri, 16 Nov 2012 20:41:52 +0000 (12:41 -0800)]
trim: Trim swapbuffers calls when --trim-spec=drawing
Previously, the SwapBuffers calls were only getting trimmed if
--trim-spec included "no-side-effects". It was counter-intuitive that
a trim-spec of "drawing" alone would leave all the SwapBuffers calls
in place. So catch them under this trim-spec as well.
Carl Worth [Thu, 15 Nov 2012 04:55:31 +0000 (20:55 -0800)]
trim: Add a new --trim-spec option for fine-grained trimming
This has two benefits:
1. In cases where the dependency analysis goes wrong, using the --trim-spec
option can help identify which portion of the code is misbehaving, (and
allows the user to still get some trim benefit by avoiding the broken
code).
2. The implementation of this change breaks the analysis code up into several
more fine-grained functions, so it should be easier to review and maintain.
José Fonseca [Wed, 6 Feb 2013 12:26:50 +0000 (12:26 +0000)]
d3dtrace: Fix DXVA2_DecodeExecuteParams::pCompressedBuffers spec.
José Fonseca [Wed, 6 Feb 2013 11:36:59 +0000 (11:36 +0000)]
d3dtrace: Recognize YV12 format.
José Fonseca [Tue, 5 Feb 2013 11:44:26 +0000 (11:44 +0000)]
Update Android instructions.
Not really based from personal experience, but rather on what others wrote,
namely
https://github.com/kanru/apitrace/commit/
5948e72a25b1d2df07299db0d49f91677827478b
José Fonseca [Fri, 1 Feb 2013 17:03:11 +0000 (17:03 +0000)]
glstate: Cleanup the read buffer selection code slightly.
We were calling glReadBuffer(draw_buffer) before reading the GL_READ_BUFFER.
Rob Clark [Tue, 29 Jan 2013 00:50:07 +0000 (18:50 -0600)]
image: make getDrawBufferImage() work for ES or !ARB_draw_buffers
Without this 'apitrace dump-images' was failing for me (GLES, freedreno
gallium driver) because attachment would be GL_NONE.
Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Carl Worth <cworth@cworth.org>
Signed-off-by: José Fonseca <jfonseca@vmware.com>
José Fonseca [Thu, 31 Jan 2013 20:26:23 +0000 (20:26 +0000)]
d3dretrace: Recognize IDirect3DDevice9Ex::PresentEx as frame terminator.
Carl Worth [Mon, 28 Jan 2013 12:37:17 +0000 (23:37 +1100)]
trim: Fix short command-line option -a for "apitrace trim"
This was documented as being equivalent to --auto, but one piece of
the plumbing was not in place.
José Fonseca [Wed, 23 Jan 2013 16:15:40 +0000 (16:15 +0000)]
glretrace: Fix snapshots on GL 3.2 core contexts (issue #106).
glPush/PopClientAttrib() are not available in core contexts. Simply
save/restore the state via glGet and pack API.
José Fonseca [Wed, 23 Jan 2013 15:16:22 +0000 (15:16 +0000)]
glretrace: Ignore a few more CGL calls.
José Fonseca [Wed, 23 Jan 2013 15:00:47 +0000 (15:00 +0000)]
os: Cast pthread_create's arg parameter.
José Fonseca [Thu, 20 Dec 2012 16:29:01 +0000 (16:29 +0000)]
cli: Inject DLL on windows by default.
José Fonseca [Thu, 20 Dec 2012 16:28:29 +0000 (16:28 +0000)]
cli: Update description of windows trace apis.
José Fonseca [Thu, 20 Dec 2012 16:26:29 +0000 (16:26 +0000)]
gltrace: Prevent use of uninitialised variable.
José Fonseca [Thu, 20 Dec 2012 16:26:06 +0000 (16:26 +0000)]
gltrace: Recognize more ES parameters.
We now always use our bundled headers so no need to be conservative any
more.
José Fonseca [Thu, 20 Dec 2012 16:10:55 +0000 (16:10 +0000)]
gltrace: Support GL_(NUM_)PROGRAM_BINARY_FORMATS (issue #104).
José Fonseca [Thu, 20 Dec 2012 15:34:50 +0000 (15:34 +0000)]
gltrace/retrace: Full support for variable length parameters.
Such as GL_COMPRESSED_TEXTURE_FORMATS.
José Fonseca [Thu, 20 Dec 2012 15:29:09 +0000 (15:29 +0000)]
retrace: Split ScopedAllocator into its own header.
It will be useful outside of retrace.
José Fonseca [Tue, 18 Dec 2012 10:45:39 +0000 (10:45 +0000)]
Update downloads link.
José Fonseca [Wed, 12 Dec 2012 18:35:56 +0000 (18:35 +0000)]
cli: Fix MSVC build.
José Fonseca [Wed, 12 Dec 2012 09:18:32 +0000 (09:18 +0000)]
d3dretrace: presents may flip so set CALL_FLAG_SWAP_RENDERTARGET flag.
José Fonseca [Wed, 12 Dec 2012 07:38:42 +0000 (07:38 +0000)]
d3dretrace: Dump D3D8 images too.
José Fonseca [Tue, 11 Dec 2012 20:37:39 +0000 (20:37 +0000)]
scripts: Add some missing code.
José Fonseca [Tue, 11 Dec 2012 19:51:26 +0000 (19:51 +0000)]
scripts: New script to convert to PIX.
José Fonseca [Tue, 11 Dec 2012 19:02:48 +0000 (19:02 +0000)]
d3dretrace: Follow --driver option for d3d8/d3d9 too
José Fonseca [Tue, 11 Dec 2012 17:50:50 +0000 (17:50 +0000)]
d3d9state: Upack D3DFMT_R5G6B5 too.
Quite common.
José Fonseca [Tue, 11 Dec 2012 09:02:23 +0000 (09:02 +0000)]
scripts: Don't install bogus sample.py
José Fonseca [Tue, 11 Dec 2012 07:34:45 +0000 (07:34 +0000)]
scripts: Install all of them.
José Fonseca [Tue, 11 Dec 2012 07:22:16 +0000 (07:22 +0000)]
Install all thirdparty licenses.
José Fonseca [Tue, 11 Dec 2012 07:20:26 +0000 (07:20 +0000)]
Merge branch 'trim-auto'
Conflicts:
cli/CMakeLists.txt
José Fonseca [Mon, 10 Dec 2012 22:58:18 +0000 (22:58 +0000)]
Merge remote-tracking branch 'github/timestamp'
José Fonseca [Mon, 10 Dec 2012 17:11:36 +0000 (17:11 +0000)]
glretrace: Remove the gpu/cpu time syncing code.
No longer necessary now that we use the same clock (GL_TIMESTAMP) for
both GPU and CPU time measurements.
José Fonseca [Sun, 9 Dec 2012 15:46:59 +0000 (15:46 +0000)]
cmake: Move the binary/installs definitions to CLI.
As that's the only place they are used.
José Fonseca [Sun, 9 Dec 2012 13:22:30 +0000 (13:22 +0000)]
qapitrace: Determine binary dir in run-time.
José Fonseca [Sun, 9 Dec 2012 13:05:24 +0000 (13:05 +0000)]
qapitrace: Adjust PATH only once and for all.
José Fonseca [Sun, 9 Dec 2012 12:38:48 +0000 (12:38 +0000)]
qapitrace: Fix histogram tooltip for profiles with small number of calls.
Alexandr Akulich [Fri, 7 Dec 2012 11:22:49 +0000 (17:22 +0600)]
gui/tracedialog: Don't show warning when user cancel to browse.
And add three dots to browse button's label to indicate dialog.
Alexandr Akulich [Fri, 7 Dec 2012 10:59:52 +0000 (16:59 +0600)]
gui/mainwindow: Add functions that toggle actions enables and use it.
Added enabling/disabling of few more actions.
Cleanup .ui file (set actions to default state).
Alexandr Akulich [Fri, 7 Dec 2012 10:58:14 +0000 (16:58 +0600)]
gui: Fix crash on trigger actions without loaded trace-file.
gui/apitrace: findFrameStart(), findFrameEnd(): Do nothing, when passed frame is null-pointer.
Alexandr Akulich [Fri, 7 Dec 2012 10:12:03 +0000 (16:12 +0600)]
gui: Small style/usability fixes.
Add accelerator (F) to Edit->Find.
Add accelerator (N) and shortcut (Ctrl+N) to File->New.
Rename "File->New" to "File->New..." to indicate, that dialog will be showed.
Carl Worth [Thu, 15 Nov 2012 18:51:01 +0000 (10:51 -0800)]
glretrace: Use GL_TIMESTAMP (if available) for CPU profiling.
The prior scheme of trying to continuously re-synchronize separate CPU
and GPU counters is doomed to always be unreliable. Instead, simply prefer
to use the GL_TIMESTAMP values for both GPU and for CPU profiling.
v2: José Fonseca: use glGet(GL_TIMESTAMP)
José Fonseca [Fri, 7 Dec 2012 09:26:01 +0000 (09:26 +0000)]
common: Recognize Create* as DirectX call.
José Fonseca [Fri, 7 Dec 2012 08:27:26 +0000 (08:27 +0000)]
image: Add forgotten CMakeLists.txt
doh..
José Fonseca [Fri, 7 Dec 2012 07:48:10 +0000 (07:48 +0000)]
Drop API_D3D10/11.
José Fonseca [Fri, 7 Dec 2012 07:43:09 +0000 (07:43 +0000)]
cli: Remove dead files.
José Fonseca [Fri, 7 Dec 2012 07:33:17 +0000 (07:33 +0000)]
cli: Move pickle.hpp in.
Only used by cli module.
José Fonseca [Fri, 7 Dec 2012 07:33:05 +0000 (07:33 +0000)]
image: Move image code into its own module.
José Fonseca [Fri, 7 Dec 2012 07:00:46 +0000 (07:00 +0000)]
cli: Merge trace_resource.cpp and trace_tools_trace.cpp in.
It's only used by CLI and it will not change.
José Fonseca [Thu, 6 Dec 2012 07:11:29 +0000 (07:11 +0000)]
tracediff: Fix python differ to not highlight when stdout is not a tty
José Fonseca [Sat, 1 Dec 2012 10:07:13 +0000 (10:07 +0000)]
specs: A few more tweaks to D3D specs.
José Fonseca [Thu, 6 Dec 2012 07:11:29 +0000 (07:11 +0000)]
tracediff: Fix python differ to not highlight when stdout is not a tty
José Fonseca [Wed, 5 Dec 2012 19:34:26 +0000 (19:34 +0000)]
d3dretrace: Fix driver overriding when pAdapter is non-NULL.
José Fonseca [Wed, 5 Dec 2012 19:28:22 +0000 (19:28 +0000)]
d3dretrace: Use debugging when available.
José Fonseca [Wed, 5 Dec 2012 18:45:22 +0000 (18:45 +0000)]
gui: Drop console on Windows.
José Fonseca [Wed, 5 Dec 2012 12:00:37 +0000 (12:00 +0000)]
d3d9state: Dump rendertarget images to JSON.
José Fonseca [Wed, 5 Dec 2012 09:41:37 +0000 (09:41 +0000)]
d3dretrace: Remove left ofer redundant code.
José Fonseca [Wed, 5 Dec 2012 09:41:24 +0000 (09:41 +0000)]
os: Use CLOCK_MONOTONIC
José Fonseca [Tue, 4 Dec 2012 13:23:03 +0000 (13:23 +0000)]
inject: Use DLL injection for D3D10+ tracing.
José Fonseca [Tue, 4 Dec 2012 13:04:14 +0000 (13:04 +0000)]
d3dretrace: Dump D3D11 images/shaders too.
Carl Worth [Sun, 12 Aug 2012 23:49:09 +0000 (16:49 -0700)]
glretrace, dump-images: Accept --call-nos=no to get snapshots with call numbers
It is sometimes inconvenient to have call numbers encoded within the
snapshot filenames. For example, when doing tests of "apitrace trim"
in the test suite the call numbers frequently change even when the
image contents do not.
By accepting the --call-nos=no option, these programs will now
generate filenames with sequential numbers starting from 0 rather than
using call numbers in the filenames.
José Fonseca [Sat, 1 Dec 2012 10:08:33 +0000 (10:08 +0000)]
Merge branch 'master' into trim-auto
José Fonseca [Sat, 1 Dec 2012 10:07:13 +0000 (10:07 +0000)]
specs: A few more tweaks to D3D specs.
José Fonseca [Wed, 28 Nov 2012 21:17:48 +0000 (21:17 +0000)]
d3dstate: Fix MSVC build.
José Fonseca [Wed, 28 Nov 2012 21:17:30 +0000 (21:17 +0000)]
specs: Minor tweaks to d3d7-9 specs.
José Fonseca [Wed, 28 Nov 2012 17:24:42 +0000 (17:24 +0000)]
d3dretrace: Dump d3d10 geometry shaders.
José Fonseca [Wed, 28 Nov 2012 15:06:22 +0000 (15:06 +0000)]
d3d10state: Dump shaders.
José Fonseca [Wed, 28 Nov 2012 12:56:01 +0000 (12:56 +0000)]
d3d10state: Dump rendertargets.
José Fonseca [Wed, 28 Nov 2012 10:45:08 +0000 (10:45 +0000)]
gui: Take all state in consideration when determining it is empty.
José Fonseca [Wed, 28 Nov 2012 09:58:09 +0000 (09:58 +0000)]
retrace: Factor out image json dumping into json.cpp.
José Fonseca [Wed, 28 Nov 2012 09:44:01 +0000 (09:44 +0000)]
retrace: Move JSON write implementation to a .cpp file.
José Fonseca [Tue, 27 Nov 2012 20:58:24 +0000 (20:58 +0000)]
state: Drop several unused json image members.
José Fonseca [Tue, 27 Nov 2012 20:50:01 +0000 (20:50 +0000)]
image: Make PNG writing an Image method.
José Fonseca [Tue, 27 Nov 2012 20:31:42 +0000 (20:31 +0000)]
glstate: Use stringstream for holding the temporary PNG images.
José Fonseca [Tue, 27 Nov 2012 20:01:29 +0000 (20:01 +0000)]
d3dretrace: Release d3d9 shader objects.
José Fonseca [Tue, 27 Nov 2012 20:01:05 +0000 (20:01 +0000)]
d3d10: Ignore D3D10CreateBlob.
Not really interesting, already handled by the stubs.
José Fonseca [Tue, 27 Nov 2012 19:59:59 +0000 (19:59 +0000)]
d3dretrace: Backout temporary debugging code.
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.
José Fonseca [Tue, 27 Nov 2012 15:25:21 +0000 (15:25 +0000)]
d3dtrace,d3dretrace: Move shader disassembly helpers to common location.
José Fonseca [Tue, 27 Nov 2012 15:22:01 +0000 (15:22 +0000)]
specs: Drop d3d10effect and d3d10shader.
Not really used or particularly interesting.
José Fonseca [Tue, 27 Nov 2012 13:11:21 +0000 (13:11 +0000)]
retracediff: Allow passing driver and arbitrary options to retrace.
José Fonseca [Tue, 27 Nov 2012 12:19:45 +0000 (12:19 +0000)]
d3dretrace: Allow to force a driver type.
José Fonseca [Tue, 27 Nov 2012 11:36:19 +0000 (11:36 +0000)]
d3dstate: Fix thinko on stage resource MiscFlags.
José Fonseca [Mon, 26 Nov 2012 19:47:45 +0000 (19:47 +0000)]
ddraw: Fix DDPIXELFORMAT.MultiSampleCaps spec.