]> git.cworth.org Git - apitrace/log
apitrace
13 years agoDefine GLhandleARB as unsigned long on MacOSX.
José Fonseca [Thu, 27 Oct 2011 13:43:10 +0000 (14:43 +0100)]
Define GLhandleARB as unsigned long on MacOSX.

13 years agoRetrace applications with mix ARB and core uniform calls correctly.
José Fonseca [Thu, 27 Oct 2011 13:35:07 +0000 (14:35 +0100)]
Retrace applications with mix ARB and core uniform calls correctly.

A bit of an hack.

13 years agoFix buffer overflow when manipulating extensions string.
José Fonseca [Thu, 27 Oct 2011 12:23:17 +0000 (13:23 +0100)]
Fix buffer overflow when manipulating extensions string.

13 years agoSwitch os functions to camelcase.
José Fonseca [Thu, 27 Oct 2011 07:10:56 +0000 (08:10 +0100)]
Switch os functions to camelcase.

13 years agoLower case namespaces.
José Fonseca [Thu, 27 Oct 2011 06:43:19 +0000 (07:43 +0100)]
Lower case namespaces.

13 years agoRename trace writer files to group nicely.
José Fonseca [Wed, 26 Oct 2011 22:39:16 +0000 (23:39 +0100)]
Rename trace writer files to group nicely.

13 years agoRe-organize the Trace::File code.
José Fonseca [Wed, 26 Oct 2011 22:37:01 +0000 (23:37 +0100)]
Re-organize the Trace::File code.

This should allow stop linking the zlib code from the wrappers.

13 years agoDocument coding syntax, and other development practices.
José Fonseca [Wed, 26 Oct 2011 22:02:08 +0000 (23:02 +0100)]
Document coding syntax, and other development practices.

13 years agoAdd --color option when pipeing traceoutput to less.
José Fonseca [Wed, 26 Oct 2011 07:19:12 +0000 (08:19 +0100)]
Add --color option when pipeing traceoutput to less.

13 years agoCleanup X11 event handling.
José Fonseca [Wed, 26 Oct 2011 17:43:21 +0000 (18:43 +0100)]
Cleanup X11 event handling.

Fixes an infinite loop on GlxDrawable::show() in certain traces.

13 years agoImprove the indention in emacs just a bit.
Zack Rusin [Wed, 26 Oct 2011 02:52:49 +0000 (22:52 -0400)]
Improve the indention in emacs just a bit.

By default emacs offsets both the inline and in-namespaces, lets
fix that.

13 years agoReplace .emacs-dirvars with .dir-locals.el
José Fonseca [Tue, 25 Oct 2011 22:16:35 +0000 (23:16 +0100)]
Replace .emacs-dirvars with .dir-locals.el

Just basic whitespace formatting settings for all file types for now.
(And let the emacs pros do the rest later)

13 years agoDocument known issues.
José Fonseca [Tue, 25 Oct 2011 08:57:01 +0000 (09:57 +0100)]
Document known issues.

Issue 47.

13 years agoEmit a warning when the window size cannot be inferred.
José Fonseca [Tue, 25 Oct 2011 08:56:15 +0000 (09:56 +0100)]
Emit a warning when the window size cannot be inferred.

Issue 47.

13 years agotracedump: Add tri-state --color option (auto, always, or never)
Carl Worth [Thu, 20 Oct 2011 22:22:09 +0000 (15:22 -0700)]
tracedump: Add tri-state --color option (auto, always, or never)

This follows a pattern similar to that provided by other tools, (such
as grep). The default auto mode colorizes if stdout is a tty. The always
and never modes explicit enable or disable colorizing.

The old --no-color and --no-colour options are deprecated, (no longer
documented but still supported to avoid any regressions of scripts).

Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
13 years agoBe more concise about DXSDK requirements.
José Fonseca [Sun, 23 Oct 2011 10:07:38 +0000 (11:07 +0100)]
Be more concise about DXSDK requirements.

13 years agoretracediff: More helpful error message when glretrace is not found.
José Fonseca [Thu, 20 Oct 2011 14:12:10 +0000 (16:12 +0200)]
retracediff: More helpful error message when glretrace is not found.

13 years agoTrace glXCreateGLXPixmapMESA.
José Fonseca [Wed, 19 Oct 2011 15:28:49 +0000 (17:28 +0200)]
Trace glXCreateGLXPixmapMESA.

13 years agoGenerated code formatting improvements.
José Fonseca [Sun, 16 Oct 2011 13:15:36 +0000 (14:15 +0100)]
Generated code formatting improvements.

13 years agoCleanup Literal class.
José Fonseca [Sat, 15 Oct 2011 14:10:06 +0000 (15:10 +0100)]
Cleanup Literal class.

13 years agoDistinguish between tags and ids.
José Fonseca [Sat, 15 Oct 2011 12:17:26 +0000 (13:17 +0100)]
Distinguish between tags and ids.

13 years agoRemove dead base parameter to literal types.
José Fonseca [Sat, 15 Oct 2011 10:21:15 +0000 (11:21 +0100)]
Remove dead base parameter to literal types.

Unnecessary given we encode it in binary form anyway.

13 years agoSpecify constant array lengths as integers.
José Fonseca [Sat, 15 Oct 2011 09:26:30 +0000 (10:26 +0100)]
Specify constant array lengths as integers.

13 years agoBring some of the virtual-memory-regions
José Fonseca [Fri, 14 Oct 2011 10:34:27 +0000 (11:34 +0100)]
Bring some of the virtual-memory-regions

Tracking user memory by querying virtual memory subsystem is not reboust
enough for master, but works in many cases, yielding much smaller and
efficient traces.

This change brings the ability of retracing traces generated by the
virtual-memory-regions branch.

It also brings more efficient tracing of glFlushMappedBufferRange calls.

The trace file version is bumped as a result.

13 years agoFactor out polymorphic type generated code into functions.
José Fonseca [Fri, 14 Oct 2011 09:15:02 +0000 (10:15 +0100)]
Factor out polymorphic type generated code into functions.

13 years agoGenerate more compact switch statements for polymorphic types.
José Fonseca [Fri, 14 Oct 2011 09:04:55 +0000 (10:04 +0100)]
Generate more compact switch statements for polymorphic types.

13 years agoMore polymorphic types in D3D9.
José Fonseca [Fri, 14 Oct 2011 09:04:12 +0000 (10:04 +0100)]
More polymorphic types in D3D9.

13 years agoAllow basic specification of polymorphic types.
José Fonseca [Thu, 13 Oct 2011 08:52:52 +0000 (09:52 +0100)]
Allow basic specification of polymorphic types.

Unfortunately quite common in GL/D3D APIs.  And this will help hanlding
better without less hand written code.

Just D3D9 for now as guinea pig.

13 years agoHandle GLenums disguised as GLdoubles too.
José Fonseca [Thu, 13 Oct 2011 07:26:27 +0000 (08:26 +0100)]
Handle GLenums disguised as GLdoubles too.

13 years agoAdd comment about SetUnhandledExceptionFilter
José Fonseca [Tue, 11 Oct 2011 19:29:02 +0000 (20:29 +0100)]
Add comment about SetUnhandledExceptionFilter

13 years agoFix retracing of wglShareLists for currently bound contexts.
José Fonseca [Tue, 11 Oct 2011 18:33:22 +0000 (19:33 +0100)]
Fix retracing of wglShareLists for currently bound contexts.

13 years agoHandle null strings in json writer.
José Fonseca [Tue, 11 Oct 2011 18:33:02 +0000 (19:33 +0100)]
Handle null strings in json writer.

13 years agoAvoid depending on MinGW runtime DLLs.
José Fonseca [Tue, 11 Oct 2011 18:32:30 +0000 (19:32 +0100)]
Avoid depending on MinGW runtime DLLs.

13 years agoAdd a few comments/links to Cocoa development resources.
José Fonseca [Mon, 10 Oct 2011 19:51:43 +0000 (20:51 +0100)]
Add a few comments/links to Cocoa development resources.

13 years agoFix dumb typo.
José Fonseca [Mon, 10 Oct 2011 19:17:35 +0000 (20:17 +0100)]
Fix dumb typo.

13 years agoIgnore several harmless CGL calls when rectracing.
José Fonseca [Mon, 10 Oct 2011 18:36:59 +0000 (19:36 +0100)]
Ignore several harmless CGL calls when rectracing.

13 years agoUse Cocoa on Mac OS X.
José Fonseca [Fri, 7 Oct 2011 14:33:48 +0000 (15:33 +0100)]
Use Cocoa on Mac OS X.

It will enable better control for OpenGL context creation.

13 years agos/unknown/unsupported.
José Fonseca [Sun, 9 Oct 2011 16:27:23 +0000 (17:27 +0100)]
s/unknown/unsupported.

13 years agoFix MacOSX build.
José Fonseca [Sun, 9 Oct 2011 16:05:58 +0000 (17:05 +0100)]
Fix MacOSX build.

13 years agoMore GL api spec cleanups.
José Fonseca [Sun, 9 Oct 2011 15:54:57 +0000 (16:54 +0100)]
More GL api spec cleanups.

13 years agoCleanup param size computation.
José Fonseca [Sun, 9 Oct 2011 15:33:00 +0000 (16:33 +0100)]
Cleanup param size computation.

13 years agoCreate contexts with DEBUG_BIT when not benchmarking.
José Fonseca [Sun, 9 Oct 2011 15:16:18 +0000 (16:16 +0100)]
Create contexts with DEBUG_BIT when not benchmarking.

13 years agoFix public/private GL symbols.
José Fonseca [Sun, 9 Oct 2011 13:56:16 +0000 (14:56 +0100)]
Fix public/private GL symbols.

According to the ABI.

13 years agoTweak GLX specs.
José Fonseca [Sun, 9 Oct 2011 13:50:24 +0000 (14:50 +0100)]
Tweak GLX specs.

13 years agoRemove the GL_KTX_buffer_region entry points with EXT suffix.
José Fonseca [Sun, 9 Oct 2011 09:57:43 +0000 (10:57 +0100)]
Remove the GL_KTX_buffer_region entry points with EXT suffix.

It was a glew bug, fixed in 1.7.0.

13 years agoSimplify glws class hierarchy.
José Fonseca [Sun, 9 Oct 2011 09:36:44 +0000 (10:36 +0100)]
Simplify glws class hierarchy.

13 years agoFix retracing of several older extensions.
José Fonseca [Sun, 9 Oct 2011 08:45:22 +0000 (09:45 +0100)]
Fix retracing of several older extensions.

13 years agoFix retracing of glGetSeparableFilter w/ pack buffer.
José Fonseca [Sun, 9 Oct 2011 08:44:03 +0000 (09:44 +0100)]
Fix retracing of glGetSeparableFilter w/ pack buffer.

13 years agoHandle glDraw*BaseInstance.
José Fonseca [Sun, 9 Oct 2011 00:04:17 +0000 (01:04 +0100)]
Handle glDraw*BaseInstance.

13 years agoUniformize warning output.
José Fonseca [Sat, 8 Oct 2011 19:23:18 +0000 (20:23 +0100)]
Uniformize warning output.

13 years agoRefactor more common retracing code.
José Fonseca [Sat, 8 Oct 2011 16:16:18 +0000 (17:16 +0100)]
Refactor more common retracing code.

13 years agoHide retrace_unknown().
José Fonseca [Sat, 8 Oct 2011 16:04:13 +0000 (17:04 +0100)]
Hide retrace_unknown().

13 years agoFix MSVC build.
José Fonseca [Sat, 8 Oct 2011 16:30:27 +0000 (17:30 +0100)]
Fix MSVC build.

13 years agoIgnore unexpected end of file in gzread.
José Fonseca [Sat, 8 Oct 2011 12:17:55 +0000 (13:17 +0100)]
Ignore unexpected end of file in gzread.

zlib-1.2.4 onwards makes it is impossible to read the last block of
incomplete gzip traces without this modification.

13 years agoUpgrade bundled zlib to 1.2.5 again.
José Fonseca [Sat, 8 Oct 2011 10:48:47 +0000 (11:48 +0100)]
Upgrade bundled zlib to 1.2.5 again.

13 years agoUniversal config.h for snappy.
José Fonseca [Sat, 8 Oct 2011 15:47:33 +0000 (16:47 +0100)]
Universal config.h for snappy.

Should (hopefully) work on all platforms that apitrace builds.

And this will make my life easier, as it will allow mixed in/out of
source builds flawlessly.

13 years agoFix mixed in/out of source builds.
José Fonseca [Sat, 8 Oct 2011 11:42:56 +0000 (12:42 +0100)]
Fix mixed in/out of source builds.

Mixing in/out of source builds is not really a good policy, but
something I do quite often due to convenience.

13 years agoUpdate glext.h
José Fonseca [Sat, 8 Oct 2011 09:25:35 +0000 (10:25 +0100)]
Update glext.h

13 years agoUpgrade bundled snappy to version 1.0.4.
José Fonseca [Sat, 8 Oct 2011 09:22:08 +0000 (10:22 +0100)]
Upgrade bundled snappy to version 1.0.4.

13 years agoFix a crash when loading multiple frames at once.
Zack Rusin [Sat, 8 Oct 2011 03:55:55 +0000 (23:55 -0400)]
Fix a crash when loading multiple frames at once.

Happens particularly often when replay has multiple errors in
different frames and they're loaded in a rapid-fire fashion.

13 years agoPreserve const-ness in string comparer.
José Fonseca [Fri, 7 Oct 2011 23:17:25 +0000 (00:17 +0100)]
Preserve const-ness in string comparer.

13 years agoUse a vector to dispatch calls when retracing.
José Fonseca [Fri, 7 Oct 2011 22:36:39 +0000 (23:36 +0100)]
Use a vector to dispatch calls when retracing.

As opposed to generated switch tables.

Speeds up retracing speed by 8%, and should speed up compilation times too.

13 years agoIgnore cgltrace.cpp
José Fonseca [Fri, 7 Oct 2011 15:31:12 +0000 (16:31 +0100)]
Ignore cgltrace.cpp

13 years agoUpdate to-do list.
José Fonseca [Fri, 7 Oct 2011 15:30:44 +0000 (16:30 +0100)]
Update to-do list.

13 years agoTrace GL 3.2's related CGL state.
José Fonseca [Wed, 5 Oct 2011 19:49:39 +0000 (20:49 +0100)]
Trace GL 3.2's related CGL state.

13 years agoRemove unnecessary include.
José Fonseca [Wed, 5 Oct 2011 19:49:19 +0000 (20:49 +0100)]
Remove unnecessary include.

13 years agoRevert "Plug leaks in glretrace."
José Fonseca [Wed, 5 Oct 2011 07:05:26 +0000 (08:05 +0100)]
Revert "Plug leaks in glretrace."

This reverts commit 568b271fe00e9489761d2b96a89bdfbfd709953a, which got
committed by mistake, as it is still experimental work.

13 years agoAlways build the common library as static.
José Fonseca [Wed, 5 Oct 2011 06:50:57 +0000 (07:50 +0100)]
Always build the common library as static.

The wrappers rely on that.

Fixes build with -DBUILD_SHARED_LIBS:BOOL=ON (issue #44).

13 years agoPlug leaks in glretrace.
José Fonseca [Wed, 28 Sep 2011 09:10:49 +0000 (10:10 +0100)]
Plug leaks in glretrace.

13 years agoFix build on Mac OS X 10.7.
José Fonseca [Tue, 4 Oct 2011 18:18:58 +0000 (19:18 +0100)]
Fix build on Mac OS X 10.7.

Issue #45.

13 years agoMore D3D10 spec tweaks.
José Fonseca [Wed, 28 Sep 2011 08:58:35 +0000 (09:58 +0100)]
More D3D10 spec tweaks.

13 years agoMore signed/unsigned comparison fixes.
José Fonseca [Wed, 28 Sep 2011 08:04:56 +0000 (09:04 +0100)]
More signed/unsigned comparison fixes.

13 years agoElminate dead WrapPointer function.
José Fonseca [Wed, 28 Sep 2011 07:23:29 +0000 (08:23 +0100)]
Elminate dead WrapPointer function.

13 years agoFix signed/unsigned comparisons.
José Fonseca [Wed, 28 Sep 2011 07:19:45 +0000 (08:19 +0100)]
Fix signed/unsigned comparisons.

13 years agoCleanup D3D10 specs.
José Fonseca [Wed, 28 Sep 2011 07:16:00 +0000 (08:16 +0100)]
Cleanup D3D10 specs.

13 years agoSilence MinGW linkage warnings.
José Fonseca [Wed, 28 Sep 2011 06:16:24 +0000 (07:16 +0100)]
Silence MinGW linkage warnings.

13 years agoRebrand as version 2.0
José Fonseca [Tue, 27 Sep 2011 19:40:13 +0000 (20:40 +0100)]
Rebrand as version 2.0

13 years agoTweaks to the cdecl.py script.
José Fonseca [Tue, 27 Sep 2011 17:47:13 +0000 (18:47 +0100)]
Tweaks to the cdecl.py script.

13 years agoAdd a to-do note about GLU.
José Fonseca [Tue, 27 Sep 2011 17:46:42 +0000 (18:46 +0100)]
Add a to-do note about GLU.

13 years agoMark output params on CGL.
José Fonseca [Tue, 27 Sep 2011 17:46:23 +0000 (18:46 +0100)]
Mark output params on CGL.

13 years agoIgnore .dmg files.
José Fonseca [Tue, 27 Sep 2011 14:08:46 +0000 (15:08 +0100)]
Ignore .dmg files.

13 years agoDeep copy the blob data.
Zack Rusin [Tue, 27 Sep 2011 16:04:10 +0000 (12:04 -0400)]
Deep copy the blob data.

Fixes a memory leak.

13 years agoUpdate cglapi's description of CGSConnectionID too.
José Fonseca [Tue, 27 Sep 2011 13:43:09 +0000 (14:43 +0100)]
Update cglapi's description of CGSConnectionID too.

13 years agoFix CGSConnectionID typedef.
José Fonseca [Tue, 27 Sep 2011 13:14:54 +0000 (14:14 +0100)]
Fix CGSConnectionID typedef.

13 years agoFix d3d10 build.
José Fonseca [Tue, 27 Sep 2011 13:14:12 +0000 (14:14 +0100)]
Fix d3d10 build.

13 years agoBuild fat binaries with i386 and x86_64 architectures by default on Mac OS X.
José Fonseca [Tue, 27 Sep 2011 13:13:56 +0000 (14:13 +0100)]
Build fat binaries with i386 and x86_64 architectures by default on Mac OS X.

13 years agoMinor tweaks to docs.
José Fonseca [Tue, 27 Sep 2011 09:20:05 +0000 (10:20 +0100)]
Minor tweaks to docs.

13 years agoFix multi line strings inside array arguments on the call details pane.
José Fonseca [Tue, 27 Sep 2011 09:19:28 +0000 (10:19 +0100)]
Fix multi line strings inside array arguments on the call details pane.

13 years agoMove .def files to specs subdir.
José Fonseca [Tue, 27 Sep 2011 08:29:03 +0000 (09:29 +0100)]
Move .def files to specs subdir.

13 years agoMove all API specs to a separate dir.
José Fonseca [Tue, 27 Sep 2011 08:21:38 +0000 (09:21 +0100)]
Move all API specs to a separate dir.

13 years agoBundle QJSON sources.
José Fonseca [Tue, 27 Sep 2011 07:54:45 +0000 (08:54 +0100)]
Bundle QJSON sources.

Should make much more straightforward to build the Qt GUI on Windows and
Mac OS X, simply by using the official Qt binaries for those OSes.

13 years agoUpdate TODO.
José Fonseca [Tue, 27 Sep 2011 06:40:37 +0000 (07:40 +0100)]
Update TODO.

13 years agoShow a warning box if astyle isn't installed and indent was activated.
Zack Rusin [Tue, 27 Sep 2011 03:54:21 +0000 (23:54 -0400)]
Show a warning box if astyle isn't installed and indent was activated.

13 years agoIgnore qapitrace.qrc.depends
José Fonseca [Mon, 26 Sep 2011 07:44:10 +0000 (08:44 +0100)]
Ignore qapitrace.qrc.depends

13 years agoSkip over filtered calls when searching.
Zack Rusin [Sun, 25 Sep 2011 18:33:41 +0000 (14:33 -0400)]
Skip over filtered calls when searching.

13 years agoMerge branch 'd3d10'
José Fonseca [Sun, 25 Sep 2011 10:05:10 +0000 (11:05 +0100)]
Merge branch 'd3d10'

13 years agoAdd an option to indent the glsl code in the shader viewer.
Zack Rusin [Sat, 24 Sep 2011 23:39:59 +0000 (19:39 -0400)]
Add an option to indent the glsl code in the shader viewer.

Requires 'astyle' but works very well and makes reading wonky
shaders a /lot/ easier.

13 years agoAdd a custom filter to the event view.
Zack Rusin [Sat, 24 Sep 2011 21:06:38 +0000 (17:06 -0400)]
Add a custom filter to the event view.

Allows one to filter out any custom call. Very useful on large traces
that have e.g. millions of redundant GetCurrentContext and
MakeCurrentContext calls.

13 years agoMake sure we reset the state when loading another trace file
Zack Rusin [Sat, 24 Sep 2011 17:42:53 +0000 (13:42 -0400)]
Make sure we reset the state when loading another trace file

fixes issue #41

13 years agoDelete unused member variable
Zack Rusin [Sat, 24 Sep 2011 04:14:11 +0000 (00:14 -0400)]
Delete unused member variable