tools/apitrace.git
13 years agoSpecialized Writer for tracing the current process.
José Fonseca [Sat, 20 Aug 2011 12:01:37 +0000 (13:01 +0100)]
Specialized Writer for tracing the current process.

No need to burden the GUI and other tools with mutexes, and file sync/flushes.

13 years agoImprovide whitespace formatting of tracediff.sh
José Fonseca [Sat, 20 Aug 2011 11:46:10 +0000 (12:46 +0100)]
Improvide whitespace formatting of tracediff.sh

13 years agoDon't change immutable values.
Zack Rusin [Mon, 8 Aug 2011 21:49:51 +0000 (17:49 -0400)]
Don't change immutable values.

When editing the values in the gui we'd silently change some immutable
values. This fixes #29

13 years agoQt not QT
Zack Rusin [Fri, 29 Jul 2011 04:07:43 +0000 (00:07 -0400)]
Qt not QT

13 years agoLink all targets against common.
José Fonseca [Mon, 1 Aug 2011 11:15:59 +0000 (12:15 +0100)]
Link all targets against common.

Less duplication / more uniformization.

13 years agoSort uniforms in ascending order by default.
José Fonseca [Sun, 31 Jul 2011 23:33:14 +0000 (00:33 +0100)]
Sort uniforms in ascending order by default.

13 years agoAvoid duplicate shaders.
José Fonseca [Sun, 31 Jul 2011 23:29:36 +0000 (00:29 +0100)]
Avoid duplicate shaders.

Some driver stacks alias core GL programs with ARB shader programs.

13 years agoFix shader type from ARB_shader_objects.
José Fonseca [Sun, 31 Jul 2011 23:18:48 +0000 (00:18 +0100)]
Fix shader type from ARB_shader_objects.

13 years agoAdd a state tab that list uniforms.
José Fonseca [Sun, 31 Jul 2011 23:16:35 +0000 (00:16 +0100)]
Add a state tab that list uniforms.

Blatantly copied from parameter tab.

13 years agoAvoid pointless data structure copying.
José Fonseca [Sun, 31 Jul 2011 23:08:40 +0000 (00:08 +0100)]
Avoid pointless data structure copying.

C++ makes life easy, but sure makes it easy to write inefficient code.

Probably more cases like this lying around.

13 years agoRecognize glFrameTerminatorGREMEDY as swapbuffer frame marker.
José Fonseca [Fri, 29 Jul 2011 16:20:05 +0000 (17:20 +0100)]
Recognize glFrameTerminatorGREMEDY as swapbuffer frame marker.

13 years agoFix automagic link in comment.
José Fonseca [Thu, 28 Jul 2011 18:07:50 +0000 (19:07 +0100)]
Fix automagic link in comment.

13 years agoAdd ENABLE_GUI option to control GUI builds and dependency checks
José Fonseca [Wed, 27 Jul 2011 23:32:54 +0000 (00:32 +0100)]
Add ENABLE_GUI option to control GUI builds and dependency checks

Invoking cmake with -DENABLE_GUI=ON will require QT/QJSON.  Setting it
to OFF will never build the GUI, even if QT and QJSON is available.  The
default setting is AUTO, whereby QT/QJSON will be used if available (ie.
the current behavior).

Inspired on Tim Harder's patch for Gentoo and the information on
http://www.gentoo.org/proj/en/qa/automagic.xmltest , but modified to not
change the current default automagic behavior.

13 years agoAdd glXDestroyContext because the warnings were getting irritating.
Zack Rusin [Wed, 27 Jul 2011 21:00:50 +0000 (17:00 -0400)]
Add glXDestroyContext because the warnings were getting irritating.

13 years agoDump ARB program uniforms.
José Fonseca [Thu, 21 Jul 2011 01:29:26 +0000 (18:29 -0700)]
Dump ARB program uniforms.

13 years agoDump uniforms for ARB_shader_objects too.
José Fonseca [Tue, 19 Jul 2011 23:32:36 +0000 (16:32 -0700)]
Dump uniforms for ARB_shader_objects too.

13 years agoHandle moe uniform types and sizes.
José Fonseca [Tue, 19 Jul 2011 21:35:40 +0000 (14:35 -0700)]
Handle moe uniform types and sizes.

13 years agoBasic uniform state dumping
José Fonseca [Tue, 19 Jul 2011 15:47:02 +0000 (08:47 -0700)]
Basic uniform state dumping

13 years agoSort shader objs so that state dumps are reproducible.
José Fonseca [Tue, 19 Jul 2011 15:24:09 +0000 (08:24 -0700)]
Sort shader objs so that state dumps are reproducible.

13 years agoAdd missing call to dumpCurrentProgramObj.
José Fonseca [Tue, 19 Jul 2011 15:20:35 +0000 (08:20 -0700)]
Add missing call to dumpCurrentProgramObj.

13 years agoAccumulate the sources of different shader objects with the same type.
José Fonseca [Sun, 17 Jul 2011 04:08:16 +0000 (21:08 -0700)]
Accumulate the sources of different shader objects with the same type.

13 years agoFix the *GREMEDY proc address return.
José Fonseca [Fri, 15 Jul 2011 19:16:40 +0000 (20:16 +0100)]
Fix the *GREMEDY proc address return.

13 years agoImplement GL_GREMEDY_string_marker and GL_GREMEDY_frame_terminator.
José Fonseca [Fri, 15 Jul 2011 09:15:19 +0000 (10:15 +0100)]
Implement GL_GREMEDY_string_marker and GL_GREMEDY_frame_terminator.

13 years agoAdjust the default tracedump path.
José Fonseca [Mon, 11 Jul 2011 00:03:50 +0000 (01:03 +0100)]
Adjust the default tracedump path.

13 years agoAdd missing headers.
José Fonseca [Thu, 14 Jul 2011 20:33:52 +0000 (21:33 +0100)]
Add missing headers.

13 years agoFallback to /proc/self/cmdline on setuid processes.
José Fonseca [Thu, 14 Jul 2011 17:32:01 +0000 (18:32 +0100)]
Fallback to /proc/self/cmdline on setuid processes.

13 years agoImport PIL modules from PIL package.
José Fonseca [Tue, 12 Jul 2011 23:08:21 +0000 (00:08 +0100)]
Import PIL modules from PIL package.

More portable

13 years agoFix typo in INT32.
José Fonseca [Thu, 7 Jul 2011 09:18:09 +0000 (10:18 +0100)]
Fix typo in INT32.

13 years agoAdd missing file to glxtrace.so
José Fonseca [Tue, 5 Jul 2011 16:55:05 +0000 (17:55 +0100)]
Add missing file to glxtrace.so

13 years agoMinor tweaks to the markdown.
José Fonseca [Mon, 4 Jul 2011 09:20:42 +0000 (10:20 +0100)]
Minor tweaks to the markdown.

13 years agoPNM output support.
José Fonseca [Sat, 2 Jul 2011 14:42:57 +0000 (15:42 +0100)]
PNM output support.

Inspired on Mathieu Virbel's raw stdout snashot branch.

13 years agoSplit image code per file format.
José Fonseca [Sat, 2 Jul 2011 14:35:44 +0000 (15:35 +0100)]
Split image code per file format.

13 years agoRename static library from trace to common.
José Fonseca [Sat, 2 Jul 2011 13:16:37 +0000 (14:16 +0100)]
Rename static library from trace to common.

13 years agoMerge remote-tracking branch 'github/markdown'
José Fonseca [Sat, 2 Jul 2011 13:25:48 +0000 (14:25 +0100)]
Merge remote-tracking branch 'github/markdown'

13 years agoFix out of source build.
José Fonseca [Fri, 1 Jul 2011 10:58:16 +0000 (11:58 +0100)]
Fix out of source build.

13 years agoUse markdown syntax.
José Fonseca [Thu, 30 Jun 2011 13:32:57 +0000 (14:32 +0100)]
Use markdown syntax.

13 years agoUpdate glext headers.
José Fonseca [Thu, 30 Jun 2011 12:40:28 +0000 (13:40 +0100)]
Update glext headers.

13 years agoPut all thirdparty code into a separate subdirectory.
José Fonseca [Thu, 30 Jun 2011 12:28:42 +0000 (13:28 +0100)]
Put all thirdparty code into a separate subdirectory.

13 years agoFix NV_vertex_program detection logic.
José Fonseca [Wed, 29 Jun 2011 16:41:02 +0000 (17:41 +0100)]
Fix NV_vertex_program detection logic.

13 years agoAttempt to use glVertexAttribPointerNV when NV_vertex_program is used.
José Fonseca [Wed, 29 Jun 2011 15:43:36 +0000 (16:43 +0100)]
Attempt to use glVertexAttribPointerNV when NV_vertex_program is used.

13 years agoUse the glGetVertexAttrib*ARB as well.
José Fonseca [Wed, 29 Jun 2011 11:57:06 +0000 (12:57 +0100)]
Use the glGetVertexAttrib*ARB as well.

13 years agoUse glVertexAttribPointerARB when VERTEX_PROGRAM_ARB is enabled.
José Fonseca [Tue, 28 Jun 2011 19:50:49 +0000 (20:50 +0100)]
Use glVertexAttribPointerARB when VERTEX_PROGRAM_ARB is enabled.

13 years agoDistinguish different glVertexAttribPointer* functions (WIP).
José Fonseca [Tue, 10 May 2011 09:38:19 +0000 (10:38 +0100)]
Distinguish different glVertexAttribPointer* functions (WIP).

13 years agoFix gl*Uniform* array lengths.
José Fonseca [Wed, 22 Jun 2011 01:03:37 +0000 (02:03 +0100)]
Fix gl*Uniform* array lengths.

A lot of inconsistencies.

This fixes (re)tracing of Heroes of Newerth.

13 years agoAdd support for GL_APPLE_flush_render
Jeff Muizelaar [Tue, 21 Jun 2011 23:22:48 +0000 (00:22 +0100)]
Add support for GL_APPLE_flush_render

13 years agoFix GREMEDY's extensions description.
José Fonseca [Tue, 21 Jun 2011 23:01:12 +0000 (00:01 +0100)]
Fix GREMEDY's extensions description.

13 years agoAlways use bundled zlib and libpng sources.
José Fonseca [Tue, 21 Jun 2011 22:58:22 +0000 (23:58 +0100)]
Always use bundled zlib and libpng sources.

Dynamically linking against them can cause conflicts when tracing
applications that dynamically link against different versions.

13 years agoDelete dead file.
José Fonseca [Tue, 21 Jun 2011 22:44:00 +0000 (23:44 +0100)]
Delete dead file.

13 years agoAllow saving of surface snapshots to png's.
Zack Rusin [Mon, 20 Jun 2011 23:46:17 +0000 (19:46 -0400)]
Allow saving of surface snapshots to png's.

idea from Terry Hendrix II

13 years agoMerge branch 'trace-snapshot'
José Fonseca [Sun, 19 Jun 2011 11:43:16 +0000 (12:43 +0100)]
Merge branch 'trace-snapshot'

13 years agoHandle gracefully errors when trying to read glXCreatewindow drawables.
José Fonseca [Sun, 19 Jun 2011 11:34:33 +0000 (12:34 +0100)]
Handle gracefully errors when trying to read glXCreatewindow drawables.

13 years agotracerepack: Don't fail when temp file is in different filesystem.
José Fonseca [Mon, 13 Jun 2011 18:41:31 +0000 (19:41 +0100)]
tracerepack: Don't fail when temp file is in different filesystem.

13 years agoAbility to take snapshots while tracing.
José Fonseca [Mon, 13 Jun 2011 09:18:31 +0000 (10:18 +0100)]
Ability to take snapshots while tracing.

Mostly for purposes of validating the trace/retrace process.

13 years agos/__dlsym/__libgl_sym/
José Fonseca [Sat, 11 Jun 2011 11:26:39 +0000 (12:26 +0100)]
s/__dlsym/__libgl_sym/

13 years agoDon't resize the window on glViewport if there's a FBO bound.
José Fonseca [Sat, 11 Jun 2011 11:19:44 +0000 (12:19 +0100)]
Don't resize the window on glViewport if there's a FBO bound.

13 years agoHandle ARB_pixel_buffer_object correctly.
José Fonseca [Sat, 11 Jun 2011 11:19:05 +0000 (12:19 +0100)]
Handle ARB_pixel_buffer_object correctly.

When a pack buffer object is bound, the pack functions *have*
side-effects.

13 years agoTrace remaining ARB_imaging functions correctly.
José Fonseca [Sat, 11 Jun 2011 11:13:14 +0000 (12:13 +0100)]
Trace remaining ARB_imaging functions correctly.

13 years agoRecognize printf format string in OS::DebugMessage.
José Fonseca [Sat, 11 Jun 2011 11:11:12 +0000 (12:11 +0100)]
Recognize printf format string in OS::DebugMessage.

13 years agoAdd a note about reseting imaging state.
José Fonseca [Sat, 11 Jun 2011 11:10:12 +0000 (12:10 +0100)]
Add a note about reseting imaging state.

13 years agoFix nasty alignment bug in image size computation.
José Fonseca [Fri, 10 Jun 2011 15:05:29 +0000 (16:05 +0100)]
Fix nasty alignment bug in image size computation.

13 years agoRetrace glConvolutionFilter*
José Fonseca [Thu, 9 Jun 2011 19:56:22 +0000 (20:56 +0100)]
Retrace glConvolutionFilter*

13 years agoRecognize a few esoteric formats.
José Fonseca [Thu, 9 Jun 2011 19:45:44 +0000 (20:45 +0100)]
Recognize a few esoteric formats.

13 years agoRecognize uniform buffer object parameters.
José Fonseca [Thu, 9 Jun 2011 19:44:56 +0000 (20:44 +0100)]
Recognize uniform buffer object parameters.

13 years agoFix another fail value assertion.
José Fonseca [Thu, 9 Jun 2011 12:37:19 +0000 (13:37 +0100)]
Fix another fail value assertion.

13 years agoMore assorted description fixes.
José Fonseca [Thu, 9 Jun 2011 09:14:35 +0000 (10:14 +0100)]
More assorted description fixes.

13 years agoFix GL_ARB_sampler_objects description.
José Fonseca [Thu, 9 Jun 2011 08:54:21 +0000 (09:54 +0100)]
Fix GL_ARB_sampler_objects description.

13 years agoFix assertion failure due to bad fail value.
José Fonseca [Wed, 8 Jun 2011 23:41:27 +0000 (00:41 +0100)]
Fix assertion failure due to bad fail value.

13 years agoRemove duplicate glAddSwapHintRectWIN.
José Fonseca [Wed, 8 Jun 2011 23:34:20 +0000 (00:34 +0100)]
Remove duplicate glAddSwapHintRectWIN.

13 years agoRetrace glXCreateContextAttribsARB.
José Fonseca [Wed, 8 Jun 2011 23:29:19 +0000 (00:29 +0100)]
Retrace glXCreateContextAttribsARB.

And simplify the glX* dispatch code in the process.

13 years agoAdd missing GLX extensions.
José Fonseca [Wed, 8 Jun 2011 23:27:27 +0000 (00:27 +0100)]
Add missing GLX extensions.

13 years agoAdd a bunch of missing GL extensions.
José Fonseca [Wed, 8 Jun 2011 23:27:12 +0000 (00:27 +0100)]
Add a bunch of missing GL extensions.

Quick'n'dirty, just to silence the warnings about unknwon functions on
GLEW applications.

13 years agoA few improvements to the C declaration parser.
José Fonseca [Wed, 8 Jun 2011 23:22:55 +0000 (00:22 +0100)]
A few improvements to the C declaration parser.

13 years agoDescribe a few GL 3 parameters.
José Fonseca [Wed, 8 Jun 2011 23:20:45 +0000 (00:20 +0100)]
Describe a few GL 3 parameters.

13 years ago(Re)trace glClearBuffer*v properly.
José Fonseca [Wed, 8 Jun 2011 23:11:13 +0000 (00:11 +0100)]
(Re)trace glClearBuffer*v properly.

13 years agoUniformize the debug messages.
José Fonseca [Wed, 8 Jun 2011 23:07:18 +0000 (00:07 +0100)]
Uniformize the debug messages.

13 years agoAdd some sanity checks to catch state clobering.
José Fonseca [Tue, 7 Jun 2011 19:58:52 +0000 (20:58 +0100)]
Add some sanity checks to catch state clobering.

13 years agoRecognize a few more misc draw function names.
José Fonseca [Tue, 7 Jun 2011 19:49:56 +0000 (20:49 +0100)]
Recognize a few more misc draw function names.

13 years agoUse the right framebuffer size also when generating snapshots.
José Fonseca [Tue, 7 Jun 2011 19:49:40 +0000 (20:49 +0100)]
Use the right framebuffer size also when generating snapshots.

13 years agoDo error checking in glCheckFramebufferStatus.
José Fonseca [Tue, 7 Jun 2011 19:48:55 +0000 (20:48 +0100)]
Do error checking in glCheckFramebufferStatus.

13 years agotracediff: Allow to control the call limit.
José Fonseca [Tue, 7 Jun 2011 19:48:37 +0000 (20:48 +0100)]
tracediff: Allow to control the call limit.

13 years agoDump framebuffer images with their true size.
José Fonseca [Tue, 7 Jun 2011 14:50:49 +0000 (15:50 +0100)]
Dump framebuffer images with their true size.

13 years agoMore accurate include/linkage in Mac OS X.
José Fonseca [Mon, 6 Jun 2011 20:06:29 +0000 (21:06 +0100)]
More accurate include/linkage in Mac OS X.

A bit of a mess because unfortunately we depend on GLX to retrace on MacOSX.

13 years agoDump framebuffer parameters.
José Fonseca [Mon, 6 Jun 2011 19:54:16 +0000 (20:54 +0100)]
Dump framebuffer parameters.

13 years agoWarn instead of aborting for missing entry-points.
José Fonseca [Mon, 6 Jun 2011 18:38:22 +0000 (19:38 +0100)]
Warn instead of aborting for missing entry-points.

13 years agoRecognize CGLFlushDrawable as a swapbuffer.
José Fonseca [Mon, 6 Jun 2011 18:37:09 +0000 (19:37 +0100)]
Recognize CGLFlushDrawable as a swapbuffer.

13 years agoGenerate .tar.bz2 packages on Linux.
José Fonseca [Mon, 6 Jun 2011 18:36:37 +0000 (19:36 +0100)]
Generate .tar.bz2 packages on Linux.

13 years agoAdjust default precision threshold.
José Fonseca [Sun, 5 Jun 2011 00:44:42 +0000 (01:44 +0100)]
Adjust default precision threshold.

13 years agoUse CMAKE_SHARED_LIBRARY_C_FLAGS instead of -fPIC.
José Fonseca [Sun, 5 Jun 2011 00:32:16 +0000 (01:32 +0100)]
Use CMAKE_SHARED_LIBRARY_C_FLAGS instead of -fPIC.

13 years agoAccept python 2.7 too.
José Fonseca [Sun, 5 Jun 2011 00:00:46 +0000 (01:00 +0100)]
Accept python 2.7 too.

13 years agoFail when trace file in command line can't be openend.
José Fonseca [Sat, 4 Jun 2011 21:55:42 +0000 (22:55 +0100)]
Fail when trace file in command line can't be openend.

13 years agoSet snapshot frequency with -c option too.
José Fonseca [Sat, 4 Jun 2011 21:52:27 +0000 (22:52 +0100)]
Set snapshot frequency with -c option too.

For backwards compatability.

13 years agoScript to run glretrace in parallel, comparing generated snapshots.
José Fonseca [Sat, 4 Jun 2011 21:51:45 +0000 (22:51 +0100)]
Script to run glretrace in parallel, comparing generated snapshots.

13 years agoformat.py is not executable.
José Fonseca [Sat, 4 Jun 2011 13:48:57 +0000 (14:48 +0100)]
format.py is not executable.

13 years agoDon't generate redundant strings.
José Fonseca [Sat, 4 Jun 2011 13:23:53 +0000 (14:23 +0100)]
Don't generate redundant strings.

13 years agoPer thirdparty library CMakeLists.xt
José Fonseca [Sat, 4 Jun 2011 13:10:54 +0000 (14:10 +0100)]
Per thirdparty library CMakeLists.xt

13 years agoDon't generate import libraries for wrapper DLLs.
José Fonseca [Sat, 4 Jun 2011 13:10:06 +0000 (14:10 +0100)]
Don't generate import libraries for wrapper DLLs.

13 years agoTweak the include order to avoid symbol conflicts.
José Fonseca [Sat, 4 Jun 2011 13:01:11 +0000 (14:01 +0100)]
Tweak the include order to avoid symbol conflicts.

Due to __out macro being defined.

13 years agoUse -isystem to DirectX SDK headers on MinGW.
José Fonseca [Sat, 4 Jun 2011 13:00:26 +0000 (14:00 +0100)]
Use -isystem to DirectX SDK headers on MinGW.

Otherwise there will be many warnings and duplicate definitions when
using recent DirectX SDK headers.

13 years agoRemove dead ImageMagick's compare invocation code.
José Fonseca [Fri, 3 Jun 2011 18:51:56 +0000 (19:51 +0100)]
Remove dead ImageMagick's compare invocation code.

13 years agoSpecify fuzz as a ratio instead of percentage.
José Fonseca [Fri, 3 Jun 2011 18:50:34 +0000 (19:50 +0100)]
Specify fuzz as a ratio instead of percentage.