Imre Deak [Fri, 20 Apr 2012 13:34:31 +0000 (16:34 +0300)]
add debug option for debug builds
Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
José Fonseca [Mon, 14 May 2012 19:20:44 +0000 (20:20 +0100)]
Use appropriate number of digits when dumping floating point numbers.
José Fonseca [Sun, 13 May 2012 14:08:37 +0000 (15:08 +0100)]
Try to disassemble d3d10 shaders too.
José Fonseca [Sun, 13 May 2012 10:41:08 +0000 (11:41 +0100)]
Rename d3dshader.* -> d3d9shader.*
José Fonseca [Sun, 13 May 2012 09:22:07 +0000 (10:22 +0100)]
Factor out object swizzling.
José Fonseca [Sun, 13 May 2012 09:04:19 +0000 (10:04 +0100)]
Split retrace swizlling helpers.
José Fonseca [Sun, 13 May 2012 08:45:04 +0000 (09:45 +0100)]
Move d3d window creation to a separate source file.
José Fonseca [Sun, 13 May 2012 07:56:10 +0000 (08:56 +0100)]
Describe a few more parameters.
José Fonseca [Sat, 12 May 2012 11:19:44 +0000 (12:19 +0100)]
Dump a few more parameters.
Michal Suchanek [Mon, 7 May 2012 14:07:16 +0000 (16:07 +0200)]
Add multiarch support.
Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
José Fonseca [Fri, 11 May 2012 13:55:50 +0000 (14:55 +0100)]
Avoid glCreateShaderProgramv when dumping satate so that the shader
source can be recovered.
Gregory Hainaut [Fri, 11 May 2012 13:54:18 +0000 (14:54 +0100)]
Take in consideration the pipeline when dumping shaders/uniforms.
A new member for JSON is created for each stage to separate easily the
different stages.
Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
Gregory Hainaut [Fri, 11 May 2012 13:49:10 +0000 (14:49 +0100)]
Try active shader program before current program.
With separate shader program, one can't query anymore current program
with glGetIntegerv(GL_CURRENT_PROGRAM, &program), so glUniform* fails to
store the correct location during retracing.
Technically glActiveShaderProgram must be used to set the active program
for Uniform. But on my system (AMD) it works without it, I don't know if
it is valid or not.
This change uses the active shader (would be 0 if the users don't call
glActiveShaderProgram) instead of current program (0 in pipeline mode)
Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
José Fonseca [Fri, 11 May 2012 13:16:49 +0000 (14:16 +0100)]
Pass INFO_LOG warnings in glCreateShaderProgramv/glCreateShaderProgramEXT.
Gregory Hainaut [Thu, 10 May 2012 17:57:08 +0000 (18:57 +0100)]
Fix auto completion typo.
José Fonseca [Thu, 10 May 2012 16:28:31 +0000 (17:28 +0100)]
Ensure alloca is declared.
José Fonseca [Thu, 10 May 2012 12:18:38 +0000 (13:18 +0100)]
Support dumping uniform buffer objects (issue #75).
Based on Gregory Hainaut's prototype.
José Fonseca [Thu, 10 May 2012 08:36:59 +0000 (09:36 +0100)]
Don't attempt to dump built-in uniforms.
José Fonseca [Wed, 9 May 2012 20:57:10 +0000 (21:57 +0100)]
Silent bogus warnings.
José Fonseca [Wed, 9 May 2012 20:12:30 +0000 (21:12 +0100)]
Fix D3D11 tracing with D3D11_CREATE_DEVICE_DEBUG flag.
José Fonseca [Wed, 9 May 2012 18:33:33 +0000 (19:33 +0100)]
Cleanup return value wrapping.
José Fonseca [Wed, 9 May 2012 18:33:15 +0000 (19:33 +0100)]
Prevent hangs in XCloseDisplay.
That surfaced with precedent commit.
Si Chen [Wed, 9 May 2012 17:16:30 +0000 (18:16 +0100)]
Add ability to run multiple traces in one time.
Si Chen [Wed, 9 May 2012 17:15:42 +0000 (18:15 +0100)]
Suppress warning when running in benchmark mode.
José Fonseca [Wed, 9 May 2012 08:23:38 +0000 (09:23 +0100)]
Find FXC executable.
José Fonseca [Tue, 8 May 2012 22:41:35 +0000 (23:41 +0100)]
Stub d3d state dumping.
José Fonseca [Tue, 8 May 2012 22:23:38 +0000 (23:23 +0100)]
Refactor d3d9 lock tracking code further.
José Fonseca [Tue, 8 May 2012 14:02:51 +0000 (15:02 +0100)]
Fix scripts absolute earch path (issue #76).
Wrongly copy'n'pasted from wrappers code.
Probably never actually used, as relative search paths where successful.
Thanks to hramrach for spotting it.
José Fonseca [Tue, 8 May 2012 11:09:42 +0000 (12:09 +0100)]
Fix typos in earlier commit.
Should have actually looked at the build output before pushing...
José Fonseca [Tue, 8 May 2012 08:07:27 +0000 (09:07 +0100)]
Set d3d10 sideeffect=False tags.
José Fonseca [Tue, 8 May 2012 08:05:53 +0000 (09:05 +0100)]
Fix tracediff.py's --width argument conversion (issue #77).
Thanks for wrabbit-revisited spotting problem and proposing fix.
José Fonseca [Tue, 8 May 2012 08:03:05 +0000 (09:03 +0100)]
Fix less eof communication.
José Fonseca [Fri, 4 May 2012 14:10:17 +0000 (15:10 +0100)]
Don't use D3D9D by default.
Too buggy.
José Fonseca [Fri, 4 May 2012 14:08:01 +0000 (15:08 +0100)]
Don't try to share surfaces.
José Fonseca [Fri, 4 May 2012 10:49:19 +0000 (11:49 +0100)]
Trace all d3d10.dll functions.
José Fonseca [Thu, 3 May 2012 13:22:26 +0000 (14:22 +0100)]
Tweak d3d8 specs.
José Fonseca [Thu, 3 May 2012 10:42:16 +0000 (11:42 +0100)]
Fix regression in drawable size estimation.
José Fonseca [Thu, 3 May 2012 10:06:00 +0000 (11:06 +0100)]
Quit on escape key.
José Fonseca [Thu, 3 May 2012 10:04:22 +0000 (11:04 +0100)]
Trace D3DADAPTER_DEFAULT instead of 0.
José Fonseca [Wed, 2 May 2012 15:04:07 +0000 (16:04 +0100)]
Don't retrace IDirect3DQuery9::GetData.
José Fonseca [Wed, 2 May 2012 15:03:26 +0000 (16:03 +0100)]
Highlight NULL as a literal.
José Fonseca [Wed, 2 May 2012 12:17:48 +0000 (13:17 +0100)]
Count displayed frames on d3dretrace.
José Fonseca [Wed, 2 May 2012 12:16:20 +0000 (13:16 +0100)]
Delete linear regions when retracing unlock.
José Fonseca [Wed, 2 May 2012 12:15:39 +0000 (13:15 +0100)]
Fix volume locked size computation.
José Fonseca [Wed, 2 May 2012 12:13:48 +0000 (13:13 +0100)]
Fix compressed texture size computation.
José Fonseca [Wed, 2 May 2012 12:10:07 +0000 (13:10 +0100)]
Ensure all interface wrapper variables are initialized.
José Fonseca [Tue, 1 May 2012 21:28:28 +0000 (22:28 +0100)]
Trace LockBox blobs.
José Fonseca [Mon, 30 Apr 2012 22:33:02 +0000 (23:33 +0100)]
Use same logic for both Lock and LockRect.
José Fonseca [Mon, 30 Apr 2012 22:18:17 +0000 (23:18 +0100)]
Use SUCCEEDED macro.
José Fonseca [Mon, 30 Apr 2012 22:18:05 +0000 (23:18 +0100)]
Handle variations of LockRect.
José Fonseca [Mon, 30 Apr 2012 21:59:40 +0000 (22:59 +0100)]
Update docs.
José Fonseca [Mon, 30 Apr 2012 16:21:58 +0000 (17:21 +0100)]
Support VS 2011 / Windows 8 SDK.
José Fonseca [Mon, 30 Apr 2012 15:51:08 +0000 (16:51 +0100)]
Eliminate dependency on D3DX10/D3DX11.
Given that it's being deprecated.
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.
José Fonseca [Mon, 30 Apr 2012 15:32:34 +0000 (16:32 +0100)]
Code cleanups.
Detected by MSVC11.
José Fonseca [Mon, 30 Apr 2012 14:25:15 +0000 (15:25 +0100)]
Add missing sign cast.
José Fonseca [Mon, 30 Apr 2012 14:24:46 +0000 (15:24 +0100)]
Remove tchar.h includes.
Not really used.
José Fonseca [Sun, 29 Apr 2012 22:22:52 +0000 (23:22 +0100)]
Factor out the lock rect size computation.
José Fonseca [Sat, 28 Apr 2012 22:22:47 +0000 (23:22 +0100)]
Try to trace D3D11.1 where available.
Untested.
José Fonseca [Sat, 28 Apr 2012 22:21:58 +0000 (23:21 +0100)]
Try to interpret the SAL annotations.
José Fonseca [Sat, 28 Apr 2012 22:21:30 +0000 (23:21 +0100)]
Try to cope with Win 8 SDK headers.
José Fonseca [Sat, 28 Apr 2012 21:57:42 +0000 (22:57 +0100)]
Find DirectX 11.1 headers too.
José Fonseca [Sat, 28 Apr 2012 20:45:38 +0000 (21:45 +0100)]
Handle IID wrapping of non void pointers.
José Fonseca [Fri, 27 Apr 2012 17:15:11 +0000 (18:15 +0100)]
Rudimentary surface lock rect retrace support.
José Fonseca [Fri, 27 Apr 2012 16:15:32 +0000 (17:15 +0100)]
Preserve both D3D9 shader byte code, and disassembly.
José Fonseca [Fri, 27 Apr 2012 12:02:08 +0000 (13:02 +0100)]
Don't retrace calls that failed when tracing.
José Fonseca [Thu, 26 Apr 2012 22:18:28 +0000 (23:18 +0100)]
Cleanup glretrace<->glws integration.
Less code duplication.
José Fonseca [Mon, 23 Apr 2012 11:20:25 +0000 (12:20 +0100)]
Ensure negation argument is signed.
José Fonseca [Mon, 23 Apr 2012 11:19:53 +0000 (12:19 +0100)]
Tone down some MSVC warnings.
José Fonseca [Mon, 23 Apr 2012 11:11:48 +0000 (12:11 +0100)]
Fix/complete D3D9 call flag.
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.
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.
José Fonseca [Mon, 23 Apr 2012 09:18:55 +0000 (10:18 +0100)]
Add flags to D3D9 calls.
José Fonseca [Mon, 23 Apr 2012 09:18:28 +0000 (10:18 +0100)]
Detect/handle more APIs in CLI/GUI.
José Fonseca [Mon, 23 Apr 2012 09:13:48 +0000 (10:13 +0100)]
Handle zero valued bitmask flags.
José Fonseca [Sun, 22 Apr 2012 23:42:44 +0000 (00:42 +0100)]
Basic snapshotting in d3dretrace.
José Fonseca [Sun, 22 Apr 2012 11:40:57 +0000 (12:40 +0100)]
s/wait/waitOnFinish/
To avoid symbol clash.
José Fonseca [Sun, 22 Apr 2012 09:12:46 +0000 (10:12 +0100)]
Fallback to d3d9.dll when d3d9d.dll can't be found.
José Fonseca [Sun, 22 Apr 2012 08:36:59 +0000 (09:36 +0100)]
Share more code between glretrace and d3dretrace.
José Fonseca [Fri, 20 Apr 2012 22:03:24 +0000 (23:03 +0100)]
Move benchmark flag into common retrace code.
José Fonseca [Fri, 20 Apr 2012 21:49:20 +0000 (22:49 +0100)]
Use getopt in other cli commands.
José Fonseca [Fri, 20 Apr 2012 20:30:08 +0000 (21:30 +0100)]
Revert "Human legible d3d9 error messages."
This reverts commit
6fac7b94c57cb084204dfad6430dfd22d30f33f7.
José Fonseca [Fri, 20 Apr 2012 20:11:15 +0000 (21:11 +0100)]
Human legible d3d9 error messages.
José Fonseca [Fri, 20 Apr 2012 20:10:15 +0000 (21:10 +0100)]
Handle CreateDeviceEx too.
José Fonseca [Fri, 20 Apr 2012 20:09:46 +0000 (21:09 +0100)]
Warn when failing to compile d3d9 shaders.
José Fonseca [Fri, 20 Apr 2012 20:09:16 +0000 (21:09 +0100)]
Set sideeffects an all methods that return new objects.
José Fonseca [Fri, 20 Apr 2012 20:08:43 +0000 (21:08 +0100)]
Make all pPresentationParameters in/out.
José Fonseca [Fri, 20 Apr 2012 20:06:32 +0000 (21:06 +0100)]
Cleanup d3d flag specs.
José Fonseca [Fri, 20 Apr 2012 20:06:04 +0000 (21:06 +0100)]
Use debug d3d9 runtime for now.
José Fonseca [Fri, 20 Apr 2012 20:05:29 +0000 (21:05 +0100)]
Install d3dretrace too.
José Fonseca [Fri, 20 Apr 2012 20:05:15 +0000 (21:05 +0100)]
Don't force using system librarie on retrace.
José Fonseca [Fri, 20 Apr 2012 20:04:43 +0000 (21:04 +0100)]
s/HINSTANCE/HMODULE/
José Fonseca [Fri, 20 Apr 2012 06:15:55 +0000 (07:15 +0100)]
Quick n dirty shader assembly.
José Fonseca [Fri, 20 Apr 2012 06:15:38 +0000 (07:15 +0100)]
Minor tweaks to the spec.
José Fonseca [Fri, 20 Apr 2012 05:09:07 +0000 (06:09 +0100)]
Eliminate unecessary casts.
José Fonseca [Thu, 19 Apr 2012 16:21:23 +0000 (17:21 +0100)]
Preserve non-NULL arrays, even when length is zero.
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.
José Fonseca [Wed, 18 Apr 2012 22:36:50 +0000 (23:36 +0100)]
Trace IDirect3DDevice9::Draw*PrimitiveUP blobs
José Fonseca [Wed, 18 Apr 2012 22:02:45 +0000 (23:02 +0100)]
Retrace IUnknown::AddRef/Release correctly.
José Fonseca [Wed, 18 Apr 2012 18:58:32 +0000 (19:58 +0100)]
Trace/retrace IDirect3DVertexBuffer9 locks