tools/apitrace.git
13 years agoThe trace now knows whether is has been edited.
Zack Rusin [Sun, 17 Apr 2011 06:34:45 +0000 (02:34 -0400)]
The trace now knows whether is has been edited.

13 years agoVarious part now propagate the values.
Zack Rusin [Sun, 17 Apr 2011 05:59:16 +0000 (01:59 -0400)]
Various part now propagate the values.

13 years agoSet a parent trace on all the frames.
Zack Rusin [Sun, 17 Apr 2011 03:14:25 +0000 (23:14 -0400)]
Set a parent trace on all the frames.

13 years agoStub out revert.
Zack Rusin [Sun, 17 Apr 2011 03:07:05 +0000 (23:07 -0400)]
Stub out revert.

13 years agoFurther reduce memory usage by a couple of hundreds of megs.
Zack Rusin [Sun, 17 Apr 2011 01:52:26 +0000 (21:52 -0400)]
Further reduce memory usage by a couple of hundreds of megs.

13 years agoCollect the edited shaders from the shader editor.
Zack Rusin [Sat, 16 Apr 2011 19:49:39 +0000 (15:49 -0400)]
Collect the edited shaders from the shader editor.

13 years agoReduce the memory usage by ~2gb on a 2.7 million calls trace
Zack Rusin [Sat, 16 Apr 2011 15:56:19 +0000 (11:56 -0400)]
Reduce the memory usage by ~2gb on a 2.7 million calls trace

delete the parsed data from blobs and delay the creation of the static
text until the item is actually shown (i.e. don't create glyph caches
for items that will never be displayed!)

13 years agodelete call after parsing it.
Zack Rusin [Sat, 16 Apr 2011 15:39:24 +0000 (11:39 -0400)]
delete call after parsing it.

13 years agoStart collecting the edited values.
Zack Rusin [Sat, 16 Apr 2011 06:16:49 +0000 (02:16 -0400)]
Start collecting the edited values.

13 years agoMake apitracecall an actual class.
Zack Rusin [Sat, 16 Apr 2011 02:16:18 +0000 (22:16 -0400)]
Make apitracecall an actual class.

abstract the data in preparation for editing the arguments

13 years agoMake the editor a dialog.
Zack Rusin [Fri, 15 Apr 2011 23:29:45 +0000 (19:29 -0400)]
Make the editor a dialog.

13 years agoDisplay shaders in the shader editor.
Zack Rusin [Fri, 15 Apr 2011 20:20:45 +0000 (16:20 -0400)]
Display shaders in the shader editor.

13 years agoMake sure that only numericals can be edited right now.
Zack Rusin [Fri, 15 Apr 2011 06:18:08 +0000 (02:18 -0400)]
Make sure that only numericals can be edited right now.

13 years agoCustom editor for the arguments.
Zack Rusin [Fri, 15 Apr 2011 06:00:28 +0000 (02:00 -0400)]
Custom editor for the arguments.

because we want to edit longlong's and we don't want to edit strings.
they're too fragile right now.

13 years agoStart working on trace editing
Zack Rusin [Fri, 15 Apr 2011 05:45:05 +0000 (01:45 -0400)]
Start working on trace editing

start with a widget to edit call arguments.
right now in a dock to make it easier to test, but eventually
will be in a dialog

13 years agoSynchronize X and GL on windows resizes.
José Fonseca [Thu, 14 Apr 2011 11:13:45 +0000 (12:13 +0100)]
Synchronize X and GL on windows resizes.

13 years agoUse call number instead of frame number for snapshot filenames.
Michel Dänzer [Thu, 24 Feb 2011 17:20:52 +0000 (09:20 -0800)]
Use call number instead of frame number for snapshot filenames.

This will allow changing the granularity of taking snapshots while preserving
the comparability of snapshots from different runs.

13 years agoUnderstand D3DFMT_RAWZ too.
José Fonseca [Wed, 13 Apr 2011 19:11:36 +0000 (20:11 +0100)]
Understand D3DFMT_RAWZ too.

13 years agoFix a few more arrays args in D3D9.
José Fonseca [Wed, 13 Apr 2011 17:47:39 +0000 (18:47 +0100)]
Fix a few more arrays args in D3D9.

13 years agoShare more code.
José Fonseca [Thu, 14 Apr 2011 08:31:23 +0000 (09:31 +0100)]
Share more code.

13 years agoEnsure __max_vertex_attribs is initialized.
José Fonseca [Thu, 14 Apr 2011 08:21:15 +0000 (09:21 +0100)]
Ensure __max_vertex_attribs is initialized.

13 years agoBest effort to show (and compare) nested state parameters.
José Fonseca [Thu, 14 Apr 2011 08:12:40 +0000 (09:12 +0100)]
Best effort to show (and compare) nested state parameters.

13 years agoDump vertex attribute parameters.
José Fonseca [Thu, 14 Apr 2011 08:05:46 +0000 (09:05 +0100)]
Dump vertex attribute parameters.

13 years agoRemove bogus reference entry.
José Fonseca [Wed, 13 Apr 2011 22:35:57 +0000 (23:35 +0100)]
Remove bogus reference entry.

13 years agoAdd links to functions documented in ARB extensions.
José Fonseca [Wed, 13 Apr 2011 22:33:54 +0000 (23:33 +0100)]
Add links to functions documented in ARB extensions.

A few more dup entries -- not sure which ones are best to keep.

13 years agoIgnore .json files.
José Fonseca [Wed, 13 Apr 2011 21:51:33 +0000 (22:51 +0100)]
Ignore .json files.

13 years agoAdd a key sequence for next and prev.
Zack Rusin [Wed, 13 Apr 2011 21:26:59 +0000 (17:26 -0400)]
Add a key sequence for next and prev.

13 years agoDump the full set of constants on D3D.
José Fonseca [Wed, 13 Apr 2011 17:19:19 +0000 (18:19 +0100)]
Dump the full set of constants on D3D.

13 years agoRemove spurious tag in snapdiff output.
José Fonseca [Wed, 13 Apr 2011 16:39:04 +0000 (17:39 +0100)]
Remove spurious tag in snapdiff output.

13 years agoAccept zero valued bitmasks.
José Fonseca [Wed, 13 Apr 2011 16:37:41 +0000 (17:37 +0100)]
Accept zero valued bitmasks.

When the zero valued flag appears before the non zero valued flags.

13 years agoTrace unofficial D3D9 formats
José Fonseca [Wed, 13 Apr 2011 16:36:36 +0000 (17:36 +0100)]
Trace unofficial D3D9 formats

13 years agoFix snapdiff arg parsing.
José Fonseca [Wed, 13 Apr 2011 14:57:15 +0000 (15:57 +0100)]
Fix snapdiff arg parsing.

13 years agoRemove dummy *_FORCE_DWORD enums.
José Fonseca [Wed, 13 Apr 2011 13:33:19 +0000 (14:33 +0100)]
Remove dummy *_FORCE_DWORD enums.

13 years agoFix array diffing.
José Fonseca [Wed, 13 Apr 2011 12:59:00 +0000 (13:59 +0100)]
Fix array diffing.

13 years agoDump GL_FRAGMENT_PROGRAM_ARB bool
José Fonseca [Wed, 13 Apr 2011 10:16:07 +0000 (11:16 +0100)]
Dump GL_FRAGMENT_PROGRAM_ARB bool

13 years agoDump ARB fragment/vertex programs too.
José Fonseca [Wed, 13 Apr 2011 10:12:20 +0000 (11:12 +0100)]
Dump ARB fragment/vertex programs too.

13 years agoLinearize the shaders source in JSON.
José Fonseca [Wed, 13 Apr 2011 09:54:19 +0000 (10:54 +0100)]
Linearize the shaders source in JSON.

GL shaders appear with all sort of topologies, which makes very hard for
the gui to handle. Instead simply provide a linearized view of the shaders
source.

The shader parameters will be passed separately.

PS: May be do this for textures too.

13 years agoShow shader type in the combo box.
José Fonseca [Wed, 13 Apr 2011 09:37:13 +0000 (10:37 +0100)]
Show shader type in the combo box.

13 years agoAbstract glGet* function inflection.
José Fonseca [Wed, 13 Apr 2011 08:22:55 +0000 (09:22 +0100)]
Abstract glGet* function inflection.

13 years agoRename libglxtrace.so back to glxtrace.so.
José Fonseca [Wed, 13 Apr 2011 07:34:38 +0000 (08:34 +0100)]
Rename libglxtrace.so back to glxtrace.so.

The rename was an unintentional side effect of my commit
c2d9f8a4ab2e4b555b918d47fe3313f862009e4d and the lib prefix is
misleading given the shared object is not meant to be linked against,
but always loaded via LD_PRELOAD.

13 years agoAdd wglDescribePixelFormat to the list of extra state filters.
Zack Rusin [Wed, 13 Apr 2011 05:56:14 +0000 (01:56 -0400)]
Add wglDescribePixelFormat to the list of extra state filters.

there's just so many wglDescribePixelFormat that it makes sense to
hide them by default.

13 years agoAllow closing of the goto widget with the escape key.
Zack Rusin [Wed, 13 Apr 2011 05:54:00 +0000 (01:54 -0400)]
Allow closing of the goto widget with the escape key.

13 years agoFix two small typos in the README.
Zack Rusin [Wed, 13 Apr 2011 05:51:17 +0000 (01:51 -0400)]
Fix two small typos in the README.

13 years agoFilter text was missing the first paren.
Zack Rusin [Wed, 13 Apr 2011 05:39:43 +0000 (01:39 -0400)]
Filter text was missing the first paren.

13 years agoImplement state diffing.
Zack Rusin [Wed, 13 Apr 2011 05:35:03 +0000 (01:35 -0400)]
Implement state diffing.

Makes it possible to show only the parts of the state which differ
from the defaults. very neat

13 years agoImplement showing only of events specified by a regexp.
Zack Rusin [Wed, 13 Apr 2011 04:41:32 +0000 (00:41 -0400)]
Implement showing only of events specified by a regexp.

13 years agoHighly optimize searching and fix a crash.
Zack Rusin [Wed, 13 Apr 2011 03:39:13 +0000 (23:39 -0400)]
Highly optimize searching and fix a crash.

13 years agoAdd a search widget and fix go to.
Zack Rusin [Wed, 13 Apr 2011 03:21:52 +0000 (23:21 -0400)]
Add a search widget and fix go to.

go to wasn't indexing the call indexes but the row counts, which
don't always match. also adding a nice search widget to search for
specific calls within the view.

13 years agoFreshen the README a bit.
José Fonseca [Tue, 12 Apr 2011 21:11:47 +0000 (22:11 +0100)]
Freshen the README a bit.

13 years agoDump some ARB_vertex_program state.
José Fonseca [Tue, 12 Apr 2011 20:06:23 +0000 (21:06 +0100)]
Dump some ARB_vertex_program state.

13 years agoScript to compare traces side by side.
José Fonseca [Tue, 12 Apr 2011 20:01:49 +0000 (21:01 +0100)]
Script to compare traces side by side.

13 years agoSilence warning.
José Fonseca [Tue, 12 Apr 2011 20:01:33 +0000 (21:01 +0100)]
Silence warning.

13 years agoRequest stencil buffer.
José Fonseca [Tue, 12 Apr 2011 19:50:01 +0000 (20:50 +0100)]
Request stencil buffer.

13 years agoPrevent buffer overflow when dumping depth buffers with odd widths due to unpack...
José Fonseca [Tue, 12 Apr 2011 18:04:38 +0000 (19:04 +0100)]
Prevent buffer overflow when dumping depth buffers with odd widths due to unpack alignment.

13 years agoResize windows at glViewport time.
José Fonseca [Tue, 12 Apr 2011 13:14:27 +0000 (14:14 +0100)]
Resize windows at glViewport time.

13 years agoMSVC portability fixes.
José Fonseca [Mon, 11 Apr 2011 20:01:07 +0000 (21:01 +0100)]
MSVC portability fixes.

13 years agoRemove __encoding__.
José Fonseca [Tue, 12 Apr 2011 09:59:52 +0000 (10:59 +0100)]
Remove __encoding__.

Always base64.

13 years agoPrototype state differencing.
José Fonseca [Tue, 12 Apr 2011 08:17:32 +0000 (09:17 +0100)]
Prototype state differencing.

13 years agoMove scripts into a sepearate dir, to distinguish for code generation ones.
José Fonseca [Tue, 12 Apr 2011 08:17:02 +0000 (09:17 +0100)]
Move scripts into a sepearate dir, to distinguish for code generation ones.

13 years agoDump stencil buffer too.
José Fonseca [Tue, 12 Apr 2011 07:28:45 +0000 (08:28 +0100)]
Dump stencil buffer too.

13 years agoAdd a very nice glsl editor code.
Zack Rusin [Tue, 12 Apr 2011 03:35:02 +0000 (23:35 -0400)]
Add a very nice glsl editor code.

port of Ariya's bsd licensed javascript editor to glsl.

13 years agoRespect the double buffered option when looking up the state.
Zack Rusin [Tue, 12 Apr 2011 01:30:04 +0000 (21:30 -0400)]
Respect the double buffered option when looking up the state.

13 years agoExpand surface items if there's not too many of them.
Zack Rusin [Tue, 12 Apr 2011 00:39:50 +0000 (20:39 -0400)]
Expand surface items if there's not too many of them.

13 years agoSupport GL_ARB_shading_language_include,
José Fonseca [Mon, 11 Apr 2011 08:19:42 +0000 (09:19 +0100)]
Support GL_ARB_shading_language_include,

13 years agoSupport GL_ARB_sync.
José Fonseca [Mon, 11 Apr 2011 08:10:55 +0000 (09:10 +0100)]
Support GL_ARB_sync.

13 years agoPut GL errors in a separate enum.
José Fonseca [Mon, 11 Apr 2011 08:09:30 +0000 (09:09 +0100)]
Put GL errors in a separate enum.

13 years agos/GLenum_/GLenum_int/g
José Fonseca [Mon, 11 Apr 2011 08:08:20 +0000 (09:08 +0100)]
s/GLenum_/GLenum_int/g

13 years agoAdd an .emacs-dirvars file.
Zack Rusin [Mon, 11 Apr 2011 06:24:19 +0000 (02:24 -0400)]
Add an .emacs-dirvars file.

13 years agoUpdate the todo.
Zack Rusin [Mon, 11 Apr 2011 06:23:35 +0000 (02:23 -0400)]
Update the todo.

13 years agoImplement tracing from the ui.
Zack Rusin [Mon, 11 Apr 2011 06:23:09 +0000 (02:23 -0400)]
Implement tracing from the ui.

13 years agoUpdate TODO
Zack Rusin [Mon, 11 Apr 2011 04:16:00 +0000 (00:16 -0400)]
Update TODO

13 years agoImplement jumping to a specific call.
Zack Rusin [Mon, 11 Apr 2011 04:15:07 +0000 (00:15 -0400)]
Implement jumping to a specific call.

13 years agoAdd a trace dialog.
Zack Rusin [Mon, 11 Apr 2011 02:56:31 +0000 (22:56 -0400)]
Add a trace dialog.

13 years agoShow the currently bound fbos in the gui.
Zack Rusin [Sun, 10 Apr 2011 23:51:44 +0000 (19:51 -0400)]
Show the currently bound fbos in the gui.

that's very, very cool :)

13 years agoReplay and parse json in a thread.
Zack Rusin [Sun, 10 Apr 2011 23:27:28 +0000 (19:27 -0400)]
Replay and parse json in a thread.

13 years agoClean the constructor a bit.
Zack Rusin [Sun, 10 Apr 2011 16:15:46 +0000 (12:15 -0400)]
Clean the constructor a bit.

13 years agoDump texture parameters with symbolic names.
José Fonseca [Sun, 10 Apr 2011 18:32:21 +0000 (19:32 +0100)]
Dump texture parameters with symbolic names.

13 years agoUse normalized ubytes for now.
José Fonseca [Sun, 10 Apr 2011 18:25:01 +0000 (19:25 +0100)]
Use normalized ubytes for now.

glretrace doesn't have the logic to choose the most appropriate data type,
nor does qapitrace have the logic to cope with multiple data types or
HDR data, so make it easier on everybody by choose the common denominator.

13 years agoDump 3D textures correctly.
José Fonseca [Sun, 10 Apr 2011 18:12:42 +0000 (19:12 +0100)]
Dump 3D textures correctly.

Not really tested however.

13 years agoAnother to do note.
José Fonseca [Sun, 10 Apr 2011 14:56:01 +0000 (15:56 +0100)]
Another to do note.

13 years agoDump texture params.
José Fonseca [Sun, 10 Apr 2011 14:55:38 +0000 (15:55 +0100)]
Dump texture params.

13 years agoDump more texture level parameters.
José Fonseca [Sun, 10 Apr 2011 14:01:44 +0000 (15:01 +0100)]
Dump more texture level parameters.

13 years agoMove trace parse methods to .cpp.
José Fonseca [Sun, 10 Apr 2011 13:45:43 +0000 (14:45 +0100)]
Move trace parse methods to .cpp.

13 years agoBasic dumping of draw buffer.
José Fonseca [Sun, 10 Apr 2011 13:17:04 +0000 (14:17 +0100)]
Basic dumping of draw buffer.

13 years agoHardcode base64 enconding.
José Fonseca [Sun, 10 Apr 2011 12:56:34 +0000 (13:56 +0100)]
Hardcode base64 enconding.

Array is too verbose to keep as a valid alternative.

13 years agoSplit gltrace.cpp code into multiple files.
José Fonseca [Sun, 10 Apr 2011 12:40:52 +0000 (13:40 +0100)]
Split gltrace.cpp code into multiple files.

13 years agoAdd more to do items; reorganize.
José Fonseca [Sun, 10 Apr 2011 10:30:22 +0000 (11:30 +0100)]
Add more to do items; reorganize.

13 years agoDump state after calls, and never inside glBegin/glEnd.
José Fonseca [Sun, 10 Apr 2011 10:25:54 +0000 (11:25 +0100)]
Dump state after calls, and never inside glBegin/glEnd.

13 years agoIgnore all generated ui_*.h files.
José Fonseca [Sun, 10 Apr 2011 10:24:35 +0000 (11:24 +0100)]
Ignore all generated ui_*.h files.

13 years agoLink against X11 libraries.
Zack Rusin [Sun, 10 Apr 2011 10:13:26 +0000 (11:13 +0100)]
Link against X11 libraries.

13 years agoClear the surfaces tree when changing calls.
Zack Rusin [Sun, 10 Apr 2011 06:47:25 +0000 (02:47 -0400)]
Clear the surfaces tree when changing calls.

13 years agoForgot to add the imageviewer.
Zack Rusin [Sun, 10 Apr 2011 06:19:59 +0000 (02:19 -0400)]
Forgot to add the imageviewer.

13 years agoAdd a simple viewer for surfaces.
Zack Rusin [Sun, 10 Apr 2011 05:57:17 +0000 (01:57 -0400)]
Add a simple viewer for surfaces.

13 years agoRead the surface data from json.
Zack Rusin [Sun, 10 Apr 2011 03:37:21 +0000 (23:37 -0400)]
Read the surface data from json.

13 years agoShow currently bound shaders.
Zack Rusin [Sat, 9 Apr 2011 23:20:58 +0000 (19:20 -0400)]
Show currently bound shaders.

13 years agoIgnore generated files.
José Fonseca [Sat, 9 Apr 2011 15:29:24 +0000 (16:29 +0100)]
Ignore generated files.

13 years agoEnsure WGL visual has depth-stencil buffer.
José Fonseca [Sat, 9 Apr 2011 15:27:15 +0000 (16:27 +0100)]
Ensure WGL visual has depth-stencil buffer.

13 years agoUpdate to-do notes.
José Fonseca [Sat, 9 Apr 2011 15:17:58 +0000 (16:17 +0100)]
Update to-do notes.

13 years agoMinor cleanup.
José Fonseca [Sat, 9 Apr 2011 15:14:14 +0000 (16:14 +0100)]
Minor cleanup.

13 years agoImplement glws for WGL.
José Fonseca [Sat, 9 Apr 2011 15:09:31 +0000 (16:09 +0100)]
Implement glws for WGL.