]> git.cworth.org Git - apitrace/log
apitrace
12 years agoHandle variations of LockRect.
José Fonseca [Mon, 30 Apr 2012 22:18:05 +0000 (23:18 +0100)]
Handle variations of LockRect.

12 years agoUpdate docs.
José Fonseca [Mon, 30 Apr 2012 21:59:40 +0000 (22:59 +0100)]
Update docs.

12 years agoSupport VS 2011 / Windows 8 SDK.
José Fonseca [Mon, 30 Apr 2012 16:21:58 +0000 (17:21 +0100)]
Support VS 2011 / Windows 8 SDK.

12 years agoEliminate dependency on D3DX10/D3DX11.
José Fonseca [Mon, 30 Apr 2012 15:51:08 +0000 (16:51 +0100)]
Eliminate dependency on D3DX10/D3DX11.

Given that it's being deprecated.

12 years agoSet WINVER to 0x501.
José Fonseca [Mon, 30 Apr 2012 15:34:07 +0000 (16:34 +0100)]
Set WINVER to 0x501.

Must be definedin order to use VectoredExceptionHandler on Windows 8 SDK.

12 years agoCode cleanups.
José Fonseca [Mon, 30 Apr 2012 15:32:34 +0000 (16:32 +0100)]
Code cleanups.

Detected by MSVC11.

12 years agoAdd missing sign cast.
José Fonseca [Mon, 30 Apr 2012 14:25:15 +0000 (15:25 +0100)]
Add missing sign cast.

12 years agoRemove tchar.h includes.
José Fonseca [Mon, 30 Apr 2012 14:24:46 +0000 (15:24 +0100)]
Remove tchar.h includes.

Not really used.

12 years agoFactor out the lock rect size computation.
José Fonseca [Sun, 29 Apr 2012 22:22:52 +0000 (23:22 +0100)]
Factor out the lock rect size computation.

12 years agoTry to trace D3D11.1 where available.
José Fonseca [Sat, 28 Apr 2012 22:22:47 +0000 (23:22 +0100)]
Try to trace D3D11.1 where available.

Untested.

12 years agoTry to interpret the SAL annotations.
José Fonseca [Sat, 28 Apr 2012 22:21:58 +0000 (23:21 +0100)]
Try to interpret the SAL annotations.

12 years agoTry to cope with Win 8 SDK headers.
José Fonseca [Sat, 28 Apr 2012 22:21:30 +0000 (23:21 +0100)]
Try to cope with Win 8 SDK headers.

12 years agoFind DirectX 11.1 headers too.
José Fonseca [Sat, 28 Apr 2012 21:57:42 +0000 (22:57 +0100)]
Find DirectX 11.1 headers too.

12 years agoHandle IID wrapping of non void pointers.
José Fonseca [Sat, 28 Apr 2012 20:45:38 +0000 (21:45 +0100)]
Handle IID wrapping of non void pointers.

12 years agoRudimentary surface lock rect retrace support.
José Fonseca [Fri, 27 Apr 2012 17:15:11 +0000 (18:15 +0100)]
Rudimentary surface lock rect retrace support.

12 years agoPreserve both D3D9 shader byte code, and disassembly.
José Fonseca [Fri, 27 Apr 2012 16:15:32 +0000 (17:15 +0100)]
Preserve both D3D9 shader byte code, and disassembly.

12 years agoDon't retrace calls that failed when tracing.
José Fonseca [Fri, 27 Apr 2012 12:02:08 +0000 (13:02 +0100)]
Don't retrace calls that failed when tracing.

12 years agoCleanup glretrace<->glws integration.
José Fonseca [Thu, 26 Apr 2012 22:18:28 +0000 (23:18 +0100)]
Cleanup glretrace<->glws integration.

Less code duplication.

12 years agoEnsure negation argument is signed.
José Fonseca [Mon, 23 Apr 2012 11:20:25 +0000 (12:20 +0100)]
Ensure negation argument is signed.

12 years agoTone down some MSVC warnings.
José Fonseca [Mon, 23 Apr 2012 11:19:53 +0000 (12:19 +0100)]
Tone down some MSVC warnings.

12 years agoFix/complete D3D9 call flag.
José Fonseca [Mon, 23 Apr 2012 11:11:48 +0000 (12:11 +0100)]
Fix/complete D3D9 call flag.

12 years agoRemove the API combo box from the UI settings window.
José Fonseca [Mon, 23 Apr 2012 11:11:19 +0000 (12:11 +0100)]
Remove the API combo box from the UI settings window.

The items were outdated, and the API is correctly guessed all the time,
so it serves no purpose.

12 years agoFix MSVC build.
José Fonseca [Mon, 23 Apr 2012 11:09:56 +0000 (12:09 +0100)]
Fix MSVC build.

MSVC distinguishes between struct vs class in mangled C++ names.

12 years agoAdd flags to D3D9 calls.
José Fonseca [Mon, 23 Apr 2012 09:18:55 +0000 (10:18 +0100)]
Add flags to D3D9 calls.

12 years agoDetect/handle more APIs in CLI/GUI.
José Fonseca [Mon, 23 Apr 2012 09:18:28 +0000 (10:18 +0100)]
Detect/handle more APIs in CLI/GUI.

12 years agoHandle zero valued bitmask flags.
José Fonseca [Mon, 23 Apr 2012 09:13:48 +0000 (10:13 +0100)]
Handle zero valued bitmask flags.

12 years agoBasic snapshotting in d3dretrace.
José Fonseca [Sun, 22 Apr 2012 23:42:44 +0000 (00:42 +0100)]
Basic snapshotting in d3dretrace.

12 years agos/wait/waitOnFinish/
José Fonseca [Sun, 22 Apr 2012 11:40:57 +0000 (12:40 +0100)]
s/wait/waitOnFinish/

To avoid symbol clash.

12 years agoFallback to d3d9.dll when d3d9d.dll can't be found.
José Fonseca [Sun, 22 Apr 2012 09:12:46 +0000 (10:12 +0100)]
Fallback to d3d9.dll when d3d9d.dll can't be found.

12 years agoShare more code between glretrace and d3dretrace.
José Fonseca [Sun, 22 Apr 2012 08:36:59 +0000 (09:36 +0100)]
Share more code between glretrace and d3dretrace.

12 years agoMove benchmark flag into common retrace code.
José Fonseca [Fri, 20 Apr 2012 22:03:24 +0000 (23:03 +0100)]
Move benchmark flag into common retrace code.

12 years agoUse getopt in other cli commands.
José Fonseca [Fri, 20 Apr 2012 21:49:20 +0000 (22:49 +0100)]
Use getopt in other cli commands.

12 years agoRevert "Human legible d3d9 error messages."
José Fonseca [Fri, 20 Apr 2012 20:30:08 +0000 (21:30 +0100)]
Revert "Human legible d3d9 error messages."

This reverts commit 6fac7b94c57cb084204dfad6430dfd22d30f33f7.

12 years agoHuman legible d3d9 error messages.
José Fonseca [Fri, 20 Apr 2012 20:11:15 +0000 (21:11 +0100)]
Human legible d3d9 error messages.

12 years agoHandle CreateDeviceEx too.
José Fonseca [Fri, 20 Apr 2012 20:10:15 +0000 (21:10 +0100)]
Handle CreateDeviceEx too.

12 years agoWarn when failing to compile d3d9 shaders.
José Fonseca [Fri, 20 Apr 2012 20:09:46 +0000 (21:09 +0100)]
Warn when failing to compile d3d9 shaders.

12 years agoSet sideeffects an all methods that return new objects.
José Fonseca [Fri, 20 Apr 2012 20:09:16 +0000 (21:09 +0100)]
Set sideeffects an all methods that return new objects.

12 years agoMake all pPresentationParameters in/out.
José Fonseca [Fri, 20 Apr 2012 20:08:43 +0000 (21:08 +0100)]
Make all pPresentationParameters in/out.

12 years agoCleanup d3d flag specs.
José Fonseca [Fri, 20 Apr 2012 20:06:32 +0000 (21:06 +0100)]
Cleanup d3d flag specs.

12 years agoUse debug d3d9 runtime for now.
José Fonseca [Fri, 20 Apr 2012 20:06:04 +0000 (21:06 +0100)]
Use debug d3d9 runtime for now.

12 years agoInstall d3dretrace too.
José Fonseca [Fri, 20 Apr 2012 20:05:29 +0000 (21:05 +0100)]
Install d3dretrace too.

12 years agoDon't force using system librarie on retrace.
José Fonseca [Fri, 20 Apr 2012 20:05:15 +0000 (21:05 +0100)]
Don't force using system librarie on retrace.

12 years agos/HINSTANCE/HMODULE/
José Fonseca [Fri, 20 Apr 2012 20:04:43 +0000 (21:04 +0100)]
s/HINSTANCE/HMODULE/

12 years agoQuick n dirty shader assembly.
José Fonseca [Fri, 20 Apr 2012 06:15:55 +0000 (07:15 +0100)]
Quick n dirty shader assembly.

12 years agoMinor tweaks to the spec.
José Fonseca [Fri, 20 Apr 2012 06:15:38 +0000 (07:15 +0100)]
Minor tweaks to the spec.

12 years agoEliminate unecessary casts.
José Fonseca [Fri, 20 Apr 2012 05:09:07 +0000 (06:09 +0100)]
Eliminate unecessary casts.

12 years agoPreserve non-NULL arrays, even when length is zero.
José Fonseca [Thu, 19 Apr 2012 16:21:23 +0000 (17:21 +0100)]
Preserve non-NULL arrays, even when length is zero.

12 years agoDon't abuse double-underscore prefix.
José Fonseca [Thu, 19 Apr 2012 06:18:59 +0000 (07:18 +0100)]
Don't abuse double-underscore prefix.

To avoid conflicts, as C++ standard reserved them for system libraries.

12 years agoTrace IDirect3DDevice9::Draw*PrimitiveUP blobs
José Fonseca [Wed, 18 Apr 2012 22:36:50 +0000 (23:36 +0100)]
Trace IDirect3DDevice9::Draw*PrimitiveUP blobs

12 years agoRetrace IUnknown::AddRef/Release correctly.
José Fonseca [Wed, 18 Apr 2012 22:02:45 +0000 (23:02 +0100)]
Retrace IUnknown::AddRef/Release correctly.

12 years agoTrace/retrace IDirect3DVertexBuffer9 locks
José Fonseca [Wed, 18 Apr 2012 18:58:32 +0000 (19:58 +0100)]
Trace/retrace IDirect3DVertexBuffer9 locks

12 years agoAdd back specs/__init__.py
José Fonseca [Wed, 18 Apr 2012 15:54:19 +0000 (16:54 +0100)]
Add back specs/__init__.py

Accidentally removed in 7ec9050b3b96f7a6c663361c7d8000eef5418667.

Make it a non-empty file so that it stands out next time it is
accidentally removed.

Thanks to Alexander Monakov for spotting its deletion.

12 years agoTrace a few more DXGI interfaces.
José Fonseca [Mon, 16 Apr 2012 20:02:17 +0000 (21:02 +0100)]
Trace a few more DXGI interfaces.

12 years agoFix querying an external derived interface.
José Fonseca [Mon, 16 Apr 2012 19:48:59 +0000 (20:48 +0100)]
Fix querying an external derived interface.

12 years agoFix common HRESULT values.
José Fonseca [Mon, 16 Apr 2012 19:47:56 +0000 (20:47 +0100)]
Fix common HRESULT values.

12 years agoDump GLboolean as enum.
José Fonseca [Mon, 16 Apr 2012 19:09:42 +0000 (20:09 +0100)]
Dump GLboolean as enum.

More readable.

12 years agoRepresent BOOL as an enum.
José Fonseca [Mon, 16 Apr 2012 18:37:25 +0000 (19:37 +0100)]
Represent BOOL as an enum.

So that TRUE/FALSE symbol names are preserved, improving readability.

12 years agoImprove tracing of ID3D11DeviceContext::CheckFeatureSupport.
José Fonseca [Mon, 16 Apr 2012 13:01:15 +0000 (14:01 +0100)]
Improve tracing of ID3D11DeviceContext::CheckFeatureSupport.

12 years agoImprove CheckFormatSupport tracing.
José Fonseca [Mon, 16 Apr 2012 12:25:06 +0000 (13:25 +0100)]
Improve CheckFormatSupport tracing.

12 years agoAdjust d3d10+ interfaces.
José Fonseca [Mon, 16 Apr 2012 12:06:44 +0000 (13:06 +0100)]
Adjust d3d10+ interfaces.

12 years agoCleanup dxgi spec.
José Fonseca [Mon, 16 Apr 2012 12:05:47 +0000 (13:05 +0100)]
Cleanup dxgi spec.

12 years agoImprove HRESULT handling.
José Fonseca [Mon, 16 Apr 2012 11:54:05 +0000 (12:54 +0100)]
Improve HRESULT handling.

12 years agounpickle: Fix rebuild of iterables.
José Fonseca [Mon, 16 Apr 2012 09:59:49 +0000 (10:59 +0100)]
unpickle: Fix rebuild of iterables.

12 years agotracediff2: Handle variations in number of arguments.
José Fonseca [Mon, 16 Apr 2012 09:59:25 +0000 (10:59 +0100)]
tracediff2: Handle variations in number of arguments.

12 years agocdecl: Always generate double quotes.
José Fonseca [Mon, 16 Apr 2012 09:57:45 +0000 (10:57 +0100)]
cdecl: Always generate double quotes.

For consitency.

12 years agoCleanup how pointers are handled.
José Fonseca [Sun, 15 Apr 2012 15:13:51 +0000 (16:13 +0100)]
Cleanup how pointers are handled.

In particular prevent high order bits to be lost when processing on
64bits traces on 32bits platforms.

12 years agoMove the last bits of code out of the top source dir.
José Fonseca [Sun, 15 Apr 2012 15:07:25 +0000 (16:07 +0100)]
Move the last bits of code out of the top source dir.

12 years agoRemove codegen.py.
José Fonseca [Sun, 15 Apr 2012 14:04:10 +0000 (15:04 +0100)]
Remove codegen.py.

Unused.

12 years agoDrop GLsync_
José Fonseca [Sun, 15 Apr 2012 14:03:31 +0000 (15:03 +0100)]
Drop GLsync_

12 years agoFactor the proc address wrapping into gltrace.py
José Fonseca [Sun, 15 Apr 2012 13:33:00 +0000 (14:33 +0100)]
Factor the proc address wrapping into gltrace.py

12 years agoName trace targets consistently.
José Fonseca [Sun, 15 Apr 2012 08:37:46 +0000 (09:37 +0100)]
Name trace targets consistently.

12 years agoCleanup a bit more IID handling.
José Fonseca [Sun, 15 Apr 2012 08:31:18 +0000 (09:31 +0100)]
Cleanup a bit more IID handling.

12 years agoHandle REFIIDs on functions too.
José Fonseca [Sun, 15 Apr 2012 07:42:25 +0000 (08:42 +0100)]
Handle REFIIDs on functions too.

12 years agoFix MacOSX build.
José Fonseca [Sat, 14 Apr 2012 21:26:09 +0000 (22:26 +0100)]
Fix MacOSX build.

12 years agoUse ObjPointers consistenty.
José Fonseca [Sat, 14 Apr 2012 21:02:42 +0000 (22:02 +0100)]
Use ObjPointers consistenty.

12 years agoFix IDirect3DVertexDeclaration9::GetDeclaration
José Fonseca [Sat, 14 Apr 2012 19:36:09 +0000 (20:36 +0100)]
Fix IDirect3DVertexDeclaration9::GetDeclaration

12 years agoFix max units computation.
José Fonseca [Sat, 14 Apr 2012 19:28:58 +0000 (20:28 +0100)]
Fix max units computation.

My thinko while tweaking Imre's e68b8d68741f2559a4be34d53b8aa3c7ed761471 patch.

12 years agoProperly (un)wrap array arguments.
José Fonseca [Sat, 14 Apr 2012 19:25:52 +0000 (20:25 +0100)]
Properly (un)wrap array arguments.

12 years agoMove dispatch to its own subdirectory.
José Fonseca [Sat, 14 Apr 2012 17:13:25 +0000 (18:13 +0100)]
Move dispatch to its own subdirectory.

12 years agoDon't change behavior of glproc code via RETRACE define.
José Fonseca [Sat, 14 Apr 2012 16:28:40 +0000 (17:28 +0100)]
Don't change behavior of glproc code via RETRACE define.

So that we don't have to build the same code twice.

12 years agoDon't link against d3d9 in runtime.
José Fonseca [Sat, 14 Apr 2012 16:24:14 +0000 (17:24 +0100)]
Don't link against d3d9 in runtime.

12 years agoMove retracers to their own directory.
José Fonseca [Sat, 14 Apr 2012 16:22:57 +0000 (17:22 +0100)]
Move retracers to their own directory.

12 years agoMove tracers to wrappers subdirectory.
José Fonseca [Sat, 14 Apr 2012 14:55:40 +0000 (15:55 +0100)]
Move tracers to wrappers subdirectory.

12 years agoDon't abuse NotImplementedError.
José Fonseca [Sat, 14 Apr 2012 14:17:12 +0000 (15:17 +0100)]
Don't abuse NotImplementedError.

So that we can distinguish between types we can't support, and those we
can support, but haven't.

12 years agoAdd d3d11.def file.
José Fonseca [Sat, 14 Apr 2012 13:58:49 +0000 (14:58 +0100)]
Add d3d11.def file.

12 years agoMinimal D3D11 support.
José Fonseca [Sat, 14 Apr 2012 13:56:45 +0000 (14:56 +0100)]
Minimal D3D11 support.

12 years agoFix dumping of depth textures.
Michal Krol [Fri, 13 Apr 2012 17:21:23 +0000 (18:21 +0100)]
Fix dumping of depth textures.

12 years agoMerge branch 'd3dretrace'
José Fonseca [Fri, 13 Apr 2012 16:36:19 +0000 (17:36 +0100)]
Merge branch 'd3dretrace'

12 years agoPrevent derreference after free when retracing glFeedbackBuffer/glSelectBuffer.
José Fonseca [Fri, 13 Apr 2012 13:57:08 +0000 (14:57 +0100)]
Prevent derreference after free when retracing glFeedbackBuffer/glSelectBuffer.

12 years agoSkip functions without sideeffects alltogether.
José Fonseca [Fri, 13 Apr 2012 12:57:23 +0000 (13:57 +0100)]
Skip functions without sideeffects alltogether.

Function body of functions with no sideeffects is no longer necessary,
now that glReadPixels is considered to have sideeffects.

12 years agoA few minor corrections to GL specs.
José Fonseca [Fri, 13 Apr 2012 12:49:41 +0000 (13:49 +0100)]
A few minor corrections to GL specs.

12 years agoFind the x64 DXSDK libraries.
José Fonseca [Fri, 13 Apr 2012 08:03:28 +0000 (09:03 +0100)]
Find the x64 DXSDK libraries.

12 years agoAndroid: hard code the trace file path to be under /data
Imre Deak [Fri, 30 Mar 2012 12:45:38 +0000 (15:45 +0300)]
Android: hard code the trace file path to be under /data

On Android for Dalvik applications cwd is preset to that of the zygote
(app_process) process and it's the root directory. Since root is r/o
mounted by default it's more convenient to have the trace file in /data
which is writeable at least by root by default.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
12 years agogles: fix lookup for GLESv1 functions
Imre Deak [Mon, 2 Apr 2012 13:47:48 +0000 (16:47 +0300)]
gles: fix lookup for GLESv1 functions

Get the function from the GLESv1 library in case it's not found in
GLESv2.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
12 years agogles: sanity check GL_COMBINED_TEXTURE_IMAGE_UNITS
Imre Deak [Mon, 9 Apr 2012 16:35:41 +0000 (19:35 +0300)]
gles: sanity check GL_COMBINED_TEXTURE_IMAGE_UNITS

At least the Android software GL implementation doesn't return the
proper value for this, but rather returns 0. The GL(ES) specification
mandates a minimum value of 2, so use this as a fall-back value.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
12 years agogles: don't call unsupported glGetHandleARB
Imre Deak [Fri, 30 Mar 2012 12:48:44 +0000 (15:48 +0300)]
gles: don't call unsupported glGetHandleARB

GLES doesn't support this call, so do not call it.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
12 years agogles: fix GLES version string matching
Imre Deak [Mon, 9 Apr 2012 16:35:06 +0000 (19:35 +0300)]
gles: fix GLES version string matching

Some implementations return a version string starting with "OpenGL ES-",
fix the detection logic accordingly.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
12 years agoTrace d3d10.1 too.
José Fonseca [Thu, 12 Apr 2012 06:13:01 +0000 (07:13 +0100)]
Trace d3d10.1 too.

12 years agoAdd trim support to qapitrace GUI app.
Dan McCabe [Wed, 21 Mar 2012 16:53:45 +0000 (09:53 -0700)]
Add trim support to qapitrace GUI app.

This patch adds support for trimming of traces via the qapitrace GUI.
We enhance the GUI by adding a Trim entry to the Trace menu. When the
user selects either a frame or a call, the "apitrace trim" command
will be invoked to trim all calls after the selected call or frame.
New trace files are created automatically and named according to the
last call number in the trimmed trace.

For example, if the original trace file is:
   /path/foo.trace
and the trace is trimmed after call 1234, the name of the trimmed trace
file will be named:
   /path/foo.1234.trim.trace

Upon trimming, the trimmed trace file will be loaded into qapitrace.

First, we enhance the Trace menu of the GUI app.

Next, we add a TrimProcess class. This is modelled on the TraceProcess
class, but takes into account differences and simplifications.

Next, we tie the TrimProcess class into the main window by accessing
that class and its members appropriately as well as tieing in message
communication with that class.

Finally, we add a reference to the source of TrimProcess to the make
system.

Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
12 years agoapitrace diff-images: Print one line for each file being compared.
Carl Worth [Mon, 9 Apr 2012 20:45:33 +0000 (13:45 -0700)]
apitrace diff-images: Print one line for each file being compared.

This is important so that the test suite can verify that "apitrace
diff-images" is actually doing something. The tricky case is when no
images are found to compare. In this case, diff-images exits with
value 0, (no differences), which is valid, but the test suite wants to
know that no comparison happened since that's unexpected, (and should
flag a failure in the test suite).

Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>