tools/apitrace.git
13 years agoCode formatting.
José Fonseca [Tue, 10 May 2011 19:36:40 +0000 (20:36 +0100)]
Code formatting.

Brackets help read generated code, given that indenting is totally broken.

13 years agoTake snapshot but don't count glReadPixels as frames.
José Fonseca [Tue, 10 May 2011 19:36:11 +0000 (20:36 +0100)]
Take snapshot but don't count glReadPixels as frames.

Based on a change by Michel Danzer.

13 years agoSymbolic names for GLX string queries.
José Fonseca [Tue, 10 May 2011 19:33:43 +0000 (20:33 +0100)]
Symbolic names for GLX string queries.

13 years agoObject handles chosen by the implementation and need to be remapped.
José Fonseca [Tue, 10 May 2011 19:33:17 +0000 (20:33 +0100)]
Object handles chosen by the implementation and need to be remapped.

13 years agoAttrib locations are specified by the user.
José Fonseca [Tue, 10 May 2011 19:32:34 +0000 (20:32 +0100)]
Attrib locations are specified by the user.

Unlike uniform locations they don't need to be remaped. This also fixes
collision between vertex attrib locations and uniform locations on the
same program.

13 years agoRemove dependency from GL headers on the GUI.
José Fonseca [Tue, 10 May 2011 19:27:00 +0000 (20:27 +0100)]
Remove dependency from GL headers on the GUI.

Therefore avoiding depending on Windows headers.

Furthermore, we'll eventually replace GL_XXX types names with more generic
ones when we support more than GL on the GUI.

13 years agoFix typo in glVertexAttribPointerNV's parameter name.
José Fonseca [Tue, 10 May 2011 09:03:15 +0000 (10:03 +0100)]
Fix typo in glVertexAttribPointerNV's parameter name.

13 years agoMore GLX attrib names
José Fonseca [Mon, 9 May 2011 22:43:39 +0000 (23:43 +0100)]
More GLX attrib names

13 years agoMinor tweaks to ARB_shader_object tracing.
José Fonseca [Mon, 9 May 2011 22:43:16 +0000 (23:43 +0100)]
Minor tweaks to ARB_shader_object tracing.

13 years agoReset all pixel store state before snapshoting.
José Fonseca [Mon, 9 May 2011 22:42:30 +0000 (23:42 +0100)]
Reset all pixel store state before snapshoting.

13 years agoMerge branch 'master' into multi-context
José Fonseca [Mon, 9 May 2011 20:27:02 +0000 (21:27 +0100)]
Merge branch 'master' into multi-context

Conflicts:
glretrace.hpp
glretrace_main.cpp

13 years agoTake a snapshots on glReadPixels.
José Fonseca [Mon, 9 May 2011 19:54:31 +0000 (20:54 +0100)]
Take a snapshots on glReadPixels.

13 years agoCheck status of glProgramString{ARB,NV}/glCompileShaderARB/glLinkProgramARB
José Fonseca [Mon, 9 May 2011 19:53:10 +0000 (20:53 +0100)]
Check status of glProgramString{ARB,NV}/glCompileShaderARB/glLinkProgramARB

13 years agoDescribe glGetShader params.
José Fonseca [Mon, 9 May 2011 19:21:21 +0000 (20:21 +0100)]
Describe glGetShader params.

13 years agoShow info log when glCompileShader/glLinkProgram fails.
José Fonseca [Mon, 9 May 2011 19:20:55 +0000 (20:20 +0100)]
Show info log when glCompileShader/glLinkProgram fails.

13 years agoDescribe glGetProgram params.
José Fonseca [Mon, 9 May 2011 19:12:39 +0000 (20:12 +0100)]
Describe glGetProgram params.

13 years agoFix programObj type.
José Fonseca [Mon, 9 May 2011 10:33:47 +0000 (11:33 +0100)]
Fix programObj type.

13 years agoDon't try to use more samples than the implementation supports
José Fonseca [Mon, 9 May 2011 10:32:15 +0000 (11:32 +0100)]
Don't try to use more samples than the implementation supports

13 years agoMany corrections to the retracing of programs and uniforms.
José Fonseca [Mon, 9 May 2011 10:22:54 +0000 (11:22 +0100)]
Many corrections to the retracing of programs and uniforms.

13 years agoDump the call when issuing warnings if verbosity is not set.
José Fonseca [Mon, 9 May 2011 10:13:33 +0000 (11:13 +0100)]
Dump the call when issuing warnings if verbosity is not set.

13 years agoHandle user pointer arrays in more draw calls.
José Fonseca [Mon, 9 May 2011 10:11:37 +0000 (11:11 +0100)]
Handle user pointer arrays in more draw calls.

13 years agoImprove gl*Map* description.
José Fonseca [Mon, 9 May 2011 08:21:34 +0000 (09:21 +0100)]
Improve gl*Map* description.

13 years agoInterpret glRenderMode return as a GLenum.
José Fonseca [Mon, 9 May 2011 08:16:16 +0000 (09:16 +0100)]
Interpret glRenderMode return as a GLenum.

13 years agoAllow to do GLlocation mapping in more places.
José Fonseca [Mon, 9 May 2011 08:10:18 +0000 (09:10 +0100)]
Allow to do GLlocation mapping in more places.

13 years agos/GLvertexArray/GLarray/
José Fonseca [Mon, 9 May 2011 08:06:02 +0000 (09:06 +0100)]
s/GLvertexArray/GLarray/

13 years agoUnset sideeffects of glIs* and glAre* functions.
José Fonseca [Mon, 9 May 2011 08:03:55 +0000 (09:03 +0100)]
Unset sideeffects of glIs* and glAre* functions.

13 years agoPrevent different enums from obtaining the same id.
José Fonseca [Sun, 8 May 2011 23:54:39 +0000 (00:54 +0100)]
Prevent different enums from obtaining the same id.

Regression introduced whith the merge of glenum,py and glparams, because
we manipulate enums after creating then,

Thanks to Zack for spotting this

13 years agoUpdate links.
José Fonseca [Sun, 8 May 2011 10:50:31 +0000 (11:50 +0100)]
Update links.

13 years agoShow call name on glGetError warning messages.
Zack Rusin [Sun, 8 May 2011 04:52:13 +0000 (00:52 -0400)]
Show call name on glGetError warning messages.

13 years agoShow call name on glGetError warning messages.
Zack Rusin [Sun, 8 May 2011 04:52:13 +0000 (00:52 -0400)]
Show call name on glGetError warning messages.

13 years agoImplement context sharing.
Zack Rusin [Sun, 8 May 2011 04:52:13 +0000 (00:52 -0400)]
Implement context sharing.

early support for sharing contexts.

13 years agoUse CPack for packaging.
José Fonseca [Sun, 8 May 2011 10:12:08 +0000 (11:12 +0100)]
Use CPack for packaging.

13 years agoEnsure our prototypes match those in glext.
José Fonseca [Sun, 8 May 2011 09:45:05 +0000 (10:45 +0100)]
Ensure our prototypes match those in glext.

13 years agoUse handle mapping in EXT_direct_state_access.
José Fonseca [Sun, 8 May 2011 08:54:47 +0000 (09:54 +0100)]
Use handle mapping in EXT_direct_state_access.

13 years agoTrace right number of parameters in GL_EXT_direct_state_access.
José Fonseca [Sun, 8 May 2011 07:29:30 +0000 (08:29 +0100)]
Trace right number of parameters in GL_EXT_direct_state_access.

13 years agoTexture border has no relevance to texture image size.
José Fonseca [Sun, 8 May 2011 06:40:30 +0000 (07:40 +0100)]
Texture border has no relevance to texture image size.

13 years agoFix build with MSVC 2005.
José Fonseca [Sun, 8 May 2011 06:39:31 +0000 (07:39 +0100)]
Fix build with MSVC 2005.

Thanks to horte for pointing this out on geeks3d comment.

13 years agoTrace blobs in glNamedBuffer(Sub)DataEXT.
José Fonseca [Sun, 8 May 2011 05:39:39 +0000 (06:39 +0100)]
Trace blobs in glNamedBuffer(Sub)DataEXT.

13 years agoUpdate to-do.
José Fonseca [Sat, 7 May 2011 10:54:39 +0000 (11:54 +0100)]
Update to-do.

13 years agoRetrace wglCreateContextAttribsARB.
José Fonseca [Sat, 7 May 2011 10:54:31 +0000 (11:54 +0100)]
Retrace wglCreateContextAttribsARB.

13 years agoBe robust against premature EOF in more places.
José Fonseca [Sat, 7 May 2011 08:25:50 +0000 (09:25 +0100)]
Be robust against premature EOF in more places.

13 years agoShow the lookup state menu on frames.
Zack Rusin [Sat, 7 May 2011 05:41:33 +0000 (01:41 -0400)]
Show the lookup state menu on frames.

13 years agoWord wrap the surfaces description.
Zack Rusin [Sat, 7 May 2011 00:26:54 +0000 (20:26 -0400)]
Word wrap the surfaces description.

13 years agoFully segregate Floats from doubles.
José Fonseca [Sat, 7 May 2011 00:17:49 +0000 (01:17 +0100)]
Fully segregate Floats from doubles.

13 years agoStop using implicit casts.
José Fonseca [Sat, 7 May 2011 00:09:19 +0000 (01:09 +0100)]
Stop using implicit casts.

C++ implicit cast semantics don't match precisely what we need.

13 years agoMerge branch 'master' into multi-context
José Fonseca [Fri, 6 May 2011 23:35:52 +0000 (00:35 +0100)]
Merge branch 'master' into multi-context

13 years agoHandle NaNs in JSON.
José Fonseca [Fri, 6 May 2011 19:49:45 +0000 (20:49 +0100)]
Handle NaNs in JSON.

13 years agoDump all cube faces.
José Fonseca [Fri, 6 May 2011 23:23:30 +0000 (00:23 +0100)]
Dump all cube faces.

13 years agoLinearize texture data in JSON.
José Fonseca [Fri, 6 May 2011 23:10:25 +0000 (00:10 +0100)]
Linearize texture data in JSON.

13 years agoDump (the first face of) cube map textures.
José Fonseca [Fri, 6 May 2011 22:27:44 +0000 (23:27 +0100)]
Dump (the first face of) cube map textures.

13 years agoDump rectangle textures too.
José Fonseca [Fri, 6 May 2011 22:10:59 +0000 (23:10 +0100)]
Dump rectangle textures too.

13 years agoDon't create an initial window.
José Fonseca [Fri, 6 May 2011 19:50:52 +0000 (20:50 +0100)]
Don't create an initial window.

13 years agoHandle NaNs in JSON.
José Fonseca [Fri, 6 May 2011 19:49:45 +0000 (20:49 +0100)]
Handle NaNs in JSON.

13 years agoTake drawable geometry on creation.
José Fonseca [Fri, 6 May 2011 19:43:48 +0000 (20:43 +0100)]
Take drawable geometry on creation.

13 years agoRetrace glXCreateNewContext & glXMakeContextCurrent.
José Fonseca [Fri, 6 May 2011 19:42:49 +0000 (20:42 +0100)]
Retrace glXCreateNewContext & glXMakeContextCurrent.

13 years agoRetrace wglCreateLayerContext and wglSwapLayerBuffers correctly.
José Fonseca [Fri, 6 May 2011 19:33:07 +0000 (20:33 +0100)]
Retrace wglCreateLayerContext and wglSwapLayerBuffers correctly.

13 years agoHandle pointer casts better.
José Fonseca [Fri, 6 May 2011 08:58:45 +0000 (09:58 +0100)]
Handle pointer casts better.

13 years agoBasic multi context & puffer support for WGL.
José Fonseca [Thu, 5 May 2011 20:12:54 +0000 (21:12 +0100)]
Basic multi context & puffer support for WGL.

13 years agoAdd script to extract reference URLS for functions documented in OpenGL man pages.
José Fonseca [Thu, 5 May 2011 19:32:00 +0000 (20:32 +0100)]
Add script to extract reference URLS for functions documented in OpenGL man pages.

13 years agoBasic multi GLX context support.
José Fonseca [Thu, 5 May 2011 07:33:42 +0000 (08:33 +0100)]
Basic multi GLX context support.

13 years agoIndent glretrace_wgl.cpp code.
José Fonseca [Thu, 5 May 2011 07:30:57 +0000 (08:30 +0100)]
Indent glretrace_wgl.cpp code.

13 years agoMove OS-specific retracing functions to separate files.
José Fonseca [Thu, 5 May 2011 06:55:54 +0000 (07:55 +0100)]
Move OS-specific retracing functions to separate files.

13 years agoDon't checkt GL error on memcpy.
José Fonseca [Thu, 5 May 2011 00:13:04 +0000 (01:13 +0100)]
Don't checkt GL error on memcpy.

13 years agoMore unknown call warning code to its own function.
José Fonseca [Thu, 5 May 2011 00:08:00 +0000 (01:08 +0100)]
More unknown call warning code to its own function.

13 years agoMake retrace_call void()
José Fonseca [Wed, 4 May 2011 23:54:04 +0000 (00:54 +0100)]
Make retrace_call void()

13 years agoMove glFlush specific code to the retrace function.
José Fonseca [Wed, 4 May 2011 23:31:01 +0000 (00:31 +0100)]
Move glFlush specific code to the retrace function.

13 years agoMerge pull request #17 from mysticbob/master
zackr [Wed, 4 May 2011 21:23:20 +0000 (14:23 -0700)]
Merge pull request #17 from mysticbob/master

minor warning fix

13 years agoquiet clang warning about mismatched types
Bob Kuehne [Wed, 4 May 2011 12:58:44 +0000 (08:58 -0400)]
quiet clang warning about mismatched types

13 years agoCleanup arrays pointer handling code.
José Fonseca [Wed, 4 May 2011 10:09:08 +0000 (11:09 +0100)]
Cleanup arrays pointer handling code.

13 years agoMinor updates to some functions.
José Fonseca [Wed, 4 May 2011 09:31:54 +0000 (10:31 +0100)]
Minor updates to some functions.

13 years agoCleanup apigen dir.
José Fonseca [Wed, 4 May 2011 09:15:52 +0000 (10:15 +0100)]
Cleanup apigen dir.

13 years agoRemove dead code.
José Fonseca [Wed, 4 May 2011 08:51:53 +0000 (09:51 +0100)]
Remove dead code.

13 years agoUnify glenum.py and glstate.py parameter table into a single one.
José Fonseca [Wed, 4 May 2011 08:41:55 +0000 (09:41 +0100)]
Unify glenum.py and glstate.py parameter table into a single one.

13 years agoUpdate gitignore.
José Fonseca [Wed, 4 May 2011 08:27:22 +0000 (09:27 +0100)]
Update gitignore.

13 years agoMore gl parameter cleanup.
José Fonseca [Sat, 30 Apr 2011 22:41:28 +0000 (23:41 +0100)]
More gl parameter cleanup.

13 years agoHandle EXT_vertex_arrays and EXT_draw_range_elements.
José Fonseca [Sat, 30 Apr 2011 22:09:03 +0000 (23:09 +0100)]
Handle EXT_vertex_arrays and EXT_draw_range_elements.

Untested, but should work.

13 years agoUse glstate.py parameter table for determining parameter sizes.
José Fonseca [Sat, 30 Apr 2011 21:44:38 +0000 (22:44 +0100)]
Use glstate.py parameter table for determining parameter sizes.

One table to rule them all.

Extra care to not miss out suported cases and introduce regressions, but
did only limited testing.

13 years agoFix whitespace.
José Fonseca [Sat, 30 Apr 2011 21:37:15 +0000 (22:37 +0100)]
Fix whitespace.

13 years agoMore state dump cleanup.
José Fonseca [Sat, 30 Apr 2011 21:36:58 +0000 (22:36 +0100)]
More state dump cleanup.

13 years agoUpdate to-do.
José Fonseca [Sat, 30 Apr 2011 19:36:55 +0000 (20:36 +0100)]
Update to-do.

13 years agoDump arb program parameters.
José Fonseca [Sat, 30 Apr 2011 07:17:02 +0000 (08:17 +0100)]
Dump arb program parameters.

13 years agoDump more program states.
José Fonseca [Fri, 29 Apr 2011 23:15:24 +0000 (00:15 +0100)]
Dump more program states.

13 years agoDescribe more state.
José Fonseca [Fri, 29 Apr 2011 12:46:25 +0000 (13:46 +0100)]
Describe more state.

13 years agoClassify more parameters.
José Fonseca [Fri, 29 Apr 2011 11:25:39 +0000 (12:25 +0100)]
Classify more parameters.

13 years agoRecognize more pixel formats.
José Fonseca [Fri, 29 Apr 2011 09:47:12 +0000 (10:47 +0100)]
Recognize more pixel formats.

13 years agoFix build on Mingw-w64.
José Fonseca [Fri, 29 Apr 2011 09:08:32 +0000 (10:08 +0100)]
Fix build on Mingw-w64.

13 years agoRecognize more D3D9 enums/flags.
José Fonseca [Fri, 29 Apr 2011 09:08:13 +0000 (10:08 +0100)]
Recognize more D3D9 enums/flags.

13 years agoUpdate FindQJSON.cmake to the latest version.
Zack Rusin [Fri, 29 Apr 2011 06:46:08 +0000 (02:46 -0400)]
Update FindQJSON.cmake to the latest version.

fixes #12

13 years agoDon't overflow the max index when the app isn't rendering anything.
Zack Rusin [Fri, 29 Apr 2011 05:22:59 +0000 (01:22 -0400)]
Don't overflow the max index when the app isn't rendering anything.

fixes #16

13 years agoMerged pull request #13 from putsman/patch-1.
zackr [Fri, 29 Apr 2011 00:14:12 +0000 (17:14 -0700)]
Merged pull request #13 from putsman/patch-1.

Fix bits_per_pixel for 5_6_5 in __glTexImage3D_size()

13 years agoAllow to resize the window to be larger than the desktop.
José Fonseca [Thu, 28 Apr 2011 19:31:55 +0000 (20:31 +0100)]
Allow to resize the window to be larger than the desktop.

13 years agoFix replay on MSVC.
José Fonseca [Thu, 28 Apr 2011 17:49:19 +0000 (18:49 +0100)]
Fix replay on MSVC.

13 years agoFix opengl32.dll output directory too.
José Fonseca [Thu, 28 Apr 2011 12:03:25 +0000 (13:03 +0100)]
Fix opengl32.dll output directory too.

13 years agoFix bits_per_pixel for 5_6_5
putsman [Thu, 28 Apr 2011 10:11:10 +0000 (03:11 -0700)]
Fix bits_per_pixel for 5_6_5

13 years agoFix .dll output directory.
José Fonseca [Thu, 28 Apr 2011 08:04:53 +0000 (09:04 +0100)]
Fix .dll output directory.

13 years agoRe-add d3d8 support.
José Fonseca [Thu, 28 Apr 2011 07:56:23 +0000 (08:56 +0100)]
Re-add d3d8 support.

13 years agoDump D3D9 shaders as text, as done previously.
José Fonseca [Thu, 28 Apr 2011 07:48:20 +0000 (08:48 +0100)]
Dump D3D9 shaders as text, as done previously.

13 years agoDescribe glretrace -db and --help options; and how to start the GUI.
José Fonseca [Tue, 26 Apr 2011 22:12:36 +0000 (23:12 +0100)]
Describe glretrace -db and --help options; and how to start the GUI.

13 years agoDon't hide the state dock while looking up the defaults.
Zack Rusin [Thu, 28 Apr 2011 03:48:16 +0000 (23:48 -0400)]
Don't hide the state dock while looking up the defaults.

13 years agoDon't clear the trace when the file selection has been cancelled.
Zack Rusin [Thu, 28 Apr 2011 01:33:57 +0000 (21:33 -0400)]
Don't clear the trace when the file selection has been cancelled.