tools/apitrace.git
13 years agoHandle GL_CURRENT_PROGRAM when the app gets it.
Zack Rusin [Tue, 19 Apr 2011 20:44:09 +0000 (16:44 -0400)]
Handle GL_CURRENT_PROGRAM when the app gets it.

13 years agomore error handling changes.
Zack Rusin [Tue, 19 Apr 2011 05:59:20 +0000 (01:59 -0400)]
more error handling changes.

13 years agoLarge chunk of functionality to show errors.
Zack Rusin [Tue, 19 Apr 2011 05:33:58 +0000 (01:33 -0400)]
Large chunk of functionality to show errors.

13 years agounignore png's in the resources dir
Zack Rusin [Mon, 18 Apr 2011 22:15:14 +0000 (18:15 -0400)]
unignore png's in the resources dir

13 years agoImplement an edit menu.
Zack Rusin [Mon, 18 Apr 2011 22:03:34 +0000 (18:03 -0400)]
Implement an edit menu.

fixes #6

13 years agoMerge branch 'trace-editing'
Zack Rusin [Mon, 18 Apr 2011 21:04:01 +0000 (17:04 -0400)]
Merge branch 'trace-editing'

fixes #1

13 years agoRemove stale reference to a deleted widget.
Zack Rusin [Mon, 18 Apr 2011 21:03:09 +0000 (17:03 -0400)]
Remove stale reference to a deleted widget.

13 years agoStandard define for Windows is _WIN32, not WIN32.
José Fonseca [Mon, 18 Apr 2011 06:49:39 +0000 (07:49 +0100)]
Standard define for Windows is _WIN32, not WIN32.

13 years agoIntercept dlopen("libGL.so") too
José Fonseca [Sun, 17 Apr 2011 21:30:26 +0000 (22:30 +0100)]
Intercept dlopen("libGL.so") too

13 years agoFix saving of traces with pointers.
Zack Rusin [Mon, 18 Apr 2011 05:52:13 +0000 (01:52 -0400)]
Fix saving of traces with pointers.

13 years agoCleanup the state after closing the trace write
Zack Rusin [Mon, 18 Apr 2011 05:31:48 +0000 (01:31 -0400)]
Cleanup the state after closing the trace write

13 years agoLots of various cosmetic changes to the call editing.
Zack Rusin [Mon, 18 Apr 2011 05:05:50 +0000 (01:05 -0400)]
Lots of various cosmetic changes to the call editing.

13 years agoA first working version of saving :)
Zack Rusin [Mon, 18 Apr 2011 04:22:50 +0000 (00:22 -0400)]
A first working version of saving :)

13 years agoDo some initial saving.
Zack Rusin [Mon, 18 Apr 2011 03:30:58 +0000 (23:30 -0400)]
Do some initial saving.

13 years agoSave the blob.
Zack Rusin [Mon, 18 Apr 2011 03:00:15 +0000 (23:00 -0400)]
Save the blob.

13 years agoImplement a bulk of trace saving.
Zack Rusin [Mon, 18 Apr 2011 02:56:58 +0000 (22:56 -0400)]
Implement a bulk of trace saving.

13 years agoIntroduce ApiEnum.
Zack Rusin [Sun, 17 Apr 2011 22:27:28 +0000 (18:27 -0400)]
Introduce ApiEnum.

we also need the value when saving back so just a string is not enough
anymore

13 years agoRemove unneeded include.
José Fonseca [Sun, 17 Apr 2011 21:22:00 +0000 (22:22 +0100)]
Remove unneeded include.

13 years agoMake sure that the trace knows when it needs saving.
Zack Rusin [Sun, 17 Apr 2011 21:10:45 +0000 (17:10 -0400)]
Make sure that the trace knows when it needs saving.

13 years agoAdd te trace_write to the trace lib
Zack Rusin [Sun, 17 Apr 2011 21:09:36 +0000 (17:09 -0400)]
Add te trace_write to the trace lib

13 years agoDetermine number of channels of GL_RG.
José Fonseca [Sun, 17 Apr 2011 20:49:29 +0000 (21:49 +0100)]
Determine number of channels of GL_RG.

13 years agothe filename is stored in the trace
Zack Rusin [Sun, 17 Apr 2011 06:42:07 +0000 (02:42 -0400)]
the filename is stored in the trace

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 agoAdd to do note about gzflush.
José Fonseca [Sat, 16 Apr 2011 13:06:26 +0000 (14:06 +0100)]
Add to do note about gzflush.

13 years agoFix tracing of apps that use dlsym, such as OpenArena.
José Fonseca [Sat, 16 Apr 2011 12:41:24 +0000 (13:41 +0100)]
Fix tracing of apps that use dlsym, such as OpenArena.

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 agoMake Trace::Parser::version a non static member.
José Fonseca [Fri, 15 Apr 2011 22:52:58 +0000 (23:52 +0100)]
Make Trace::Parser::version a non static member.

13 years agoPreserve floating point precision in JSON output.
José Fonseca [Fri, 15 Apr 2011 22:49:16 +0000 (23:49 +0100)]
Preserve floating point precision in JSON output.

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 agoAvoid min/max macro collision on MSVC.
José Fonseca [Fri, 15 Apr 2011 19:49:21 +0000 (20:49 +0100)]
Avoid min/max macro collision on MSVC.

13 years agoHandle multi texture coord arrays correctly.
José Fonseca [Fri, 15 Apr 2011 10:18:37 +0000 (11:18 +0100)]
Handle multi texture coord arrays correctly.

They are indexed by glClientActiveTexture().

13 years agoMove texture paramaters to JSON parameter object.
José Fonseca [Fri, 15 Apr 2011 09:26:35 +0000 (10:26 +0100)]
Move texture paramaters to JSON parameter object.

13 years agoRename dump -> tracedump.
José Fonseca [Fri, 15 Apr 2011 08:34:20 +0000 (09:34 +0100)]
Rename dump -> tracedump.

Dump is a too generic name to be, for example, in /usr/bin/.

13 years agoFix max texture units computation.
José Fonseca [Fri, 15 Apr 2011 08:27:28 +0000 (09:27 +0100)]
Fix max texture units computation.

13 years agoDump vertex attribs in a more GL-like manner.
José Fonseca [Fri, 15 Apr 2011 08:24:38 +0000 (09:24 +0100)]
Dump vertex attribs in a more GL-like manner.

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.