tools/apitrace.git
13 years agoAdd GL_ANY_SAMPLES_PASSED from occ_query2 to the list of enums.
Zack Rusin [Wed, 27 Apr 2011 14:18:31 +0000 (10:18 -0400)]
Add GL_ANY_SAMPLES_PASSED from occ_query2 to the list of enums.

13 years agoGet occlusion query getters reference the corrent size function.
Zack Rusin [Wed, 27 Apr 2011 14:07:37 +0000 (10:07 -0400)]
Get occlusion query getters reference the corrent size function.

13 years agoShow the size of binary data uploaded in a frame.
Zack Rusin [Wed, 27 Apr 2011 03:03:42 +0000 (23:03 -0400)]
Show the size of binary data uploaded in a frame.

By default only mark frames that make the gpu download more than 1MB
in the listview, for all others just show the size in the tooltip.

13 years agoCleanup the ApiTraceFrame a bit.
Zack Rusin [Wed, 27 Apr 2011 02:30:25 +0000 (22:30 -0400)]
Cleanup the ApiTraceFrame a bit.

in preparation for figuring out the amount of data downloaded by the gpu
in a frame.

13 years agoDump symbolic names in glTexEnv/Gen/Parameter and similar functions.
José Fonseca [Tue, 26 Apr 2011 07:50:32 +0000 (08:50 +0100)]
Dump symbolic names in glTexEnv/Gen/Parameter and similar functions.

13 years agoFix glCompressed*Image*DARB tracing/retracing
Zack Rusin [Tue, 26 Apr 2011 00:50:39 +0000 (20:50 -0400)]
Fix glCompressed*Image*DARB tracing/retracing

hopefully Jose's aliases branch will fix it for good, but right now
glCompressed*Image*D were fine but glCompressed*Image*D versions were
broken, this makes both work.

13 years agoMore state: texenv.
José Fonseca [Mon, 25 Apr 2011 21:22:03 +0000 (22:22 +0100)]
More state: texenv.

13 years agoDump more state: lights, materials.
José Fonseca [Mon, 25 Apr 2011 20:02:16 +0000 (21:02 +0100)]
Dump more state: lights, materials.

13 years agoRemove dead hidden variable.
José Fonseca [Sun, 24 Apr 2011 19:53:38 +0000 (20:53 +0100)]
Remove dead hidden variable.

13 years agoDetect the binary data at the construction.
Zack Rusin [Mon, 25 Apr 2011 20:47:21 +0000 (16:47 -0400)]
Detect the binary data at the construction.

13 years agoEncode the snapshots as png's.
Zack Rusin [Mon, 25 Apr 2011 04:05:48 +0000 (00:05 -0400)]
Encode the snapshots as png's.

Saves between 2x and 1000x of space when passing them to the gui.
It's also a huge performance win because the json parser needs to
parse between 2x and 1000x less data.

13 years agoSpecify the Qt version which we require.
Zack Rusin [Sun, 24 Apr 2011 23:28:24 +0000 (19:28 -0400)]
Specify the Qt version which we require.

13 years agoPlug 2 more memory leaks in the gui.
Zack Rusin [Sun, 24 Apr 2011 22:05:27 +0000 (18:05 -0400)]
Plug 2 more memory leaks in the gui.

13 years agoThe Value from the enum signature was leaking.
Zack Rusin [Sun, 24 Apr 2011 22:00:11 +0000 (18:00 -0400)]
The Value from the enum signature was leaking.

13 years agoPlugging some memory leaks
Zack Rusin [Sun, 24 Apr 2011 21:47:34 +0000 (17:47 -0400)]
Plugging some memory leaks

13 years agoDon't generate the search string on thousands of hidden calls.
Zack Rusin [Sun, 24 Apr 2011 19:54:33 +0000 (15:54 -0400)]
Don't generate the search string on thousands of hidden calls.

ApiTraceCall::filterText genrates a string composed of the name plus
all the arguments to use when searching, but thousands of calls are
hidden by our default filter model which means that we were generating
megs of strings data without ever using them. the patch fixes that

13 years agoAdd another enum.
Zack Rusin [Sun, 24 Apr 2011 15:22:55 +0000 (11:22 -0400)]
Add another enum.

13 years agocomment about memcpy prototype
José Fonseca [Sun, 24 Apr 2011 11:25:43 +0000 (12:25 +0100)]
comment about memcpy prototype

13 years agoBasic MapBuffer/MapBufferRange trace/retrace support.
José Fonseca [Sun, 24 Apr 2011 10:58:04 +0000 (11:58 +0100)]
Basic MapBuffer/MapBufferRange trace/retrace support.

Not thread-safe; but not much else is either ATM.

13 years agoAvoid time consuming user array checks when they have never been used before.
José Fonseca [Sun, 24 Apr 2011 09:08:22 +0000 (10:08 +0100)]
Avoid time consuming user array checks when they have never been used before.

13 years agoShow the call for which the surface we're displaying.
Zack Rusin [Sat, 23 Apr 2011 21:16:34 +0000 (17:16 -0400)]
Show the call for which the surface we're displaying.

13 years agoFix MacOSX build.
José Fonseca [Sat, 23 Apr 2011 10:26:46 +0000 (11:26 +0100)]
Fix MacOSX build.

13 years agoProvide an alternative tracing mechanism based on LD_LIBRARY_PATH.
José Fonseca [Sat, 23 Apr 2011 09:46:21 +0000 (10:46 +0100)]
Provide an alternative tracing mechanism based on LD_LIBRARY_PATH.

Still a bit flaky because everybody, even DRI drivers, are trying to
dlopen("libGL.so").

13 years agoDescribe how to build the 32bit version of the wrapper.
José Fonseca [Sat, 23 Apr 2011 08:40:42 +0000 (09:40 +0100)]
Describe how to build the 32bit version of the wrapper.

13 years agoAdd a few more extensions to glapi.py
José Fonseca [Fri, 22 Apr 2011 21:59:07 +0000 (22:59 +0100)]
Add a few more extensions to glapi.py

13 years agoForce internal symbol relocations to be solved internally.
José Fonseca [Fri, 22 Apr 2011 21:58:51 +0000 (22:58 +0100)]
Force internal symbol relocations to be solved internally.

13 years agos/TRACE_PATH/TRACE_FILE/
José Fonseca [Fri, 22 Apr 2011 11:34:22 +0000 (12:34 +0100)]
s/TRACE_PATH/TRACE_FILE/

As "PATH" usually suggested search paths.

13 years agoSize the image widget more reasonably.
Zack Rusin [Sat, 23 Apr 2011 06:30:29 +0000 (02:30 -0400)]
Size the image widget more reasonably.

13 years agoAllow opening multiple images.
Zack Rusin [Sat, 23 Apr 2011 05:41:13 +0000 (01:41 -0400)]
Allow opening multiple images.

makes it trivial to spot differences in buffers/textures

13 years agoQuick hack to downsample multisampled framebuffers.
Zack Rusin [Sat, 23 Apr 2011 01:54:17 +0000 (21:54 -0400)]
Quick hack to downsample multisampled framebuffers.

readpixels doesn't work with multisampled buffers so lets create
a duplicate non-multisampled fbo, blit the contents of the currently
bound fbo and read that.

13 years agoUse -fvidibility=hidden to restrict dynamic symbols.
José Fonseca [Fri, 22 Apr 2011 09:40:25 +0000 (10:40 +0100)]
Use -fvidibility=hidden to restrict dynamic symbols.

13 years agoRemove redundant extern "C" clauses.
José Fonseca [Fri, 22 Apr 2011 08:59:34 +0000 (09:59 +0100)]
Remove redundant extern "C" clauses.

13 years agoAdd shortcut to replay and lookup state.
Zack Rusin [Fri, 22 Apr 2011 03:02:25 +0000 (23:02 -0400)]
Add shortcut to replay and lookup state.

13 years agoHandle correctly apps that don't directly link/load libGL.so
José Fonseca [Thu, 21 Apr 2011 09:32:45 +0000 (10:32 +0100)]
Handle correctly apps that don't directly link/load libGL.so

13 years agoMinor code whitespace cleanup.
José Fonseca [Thu, 21 Apr 2011 08:28:10 +0000 (09:28 +0100)]
Minor code whitespace cleanup.

13 years agoFix HTML representation of multiline strings.
José Fonseca [Thu, 21 Apr 2011 08:13:23 +0000 (09:13 +0100)]
Fix HTML representation of multiline strings.

13 years agoRemove unused/duplicate libraries from glretrace.
José Fonseca [Thu, 21 Apr 2011 07:25:26 +0000 (08:25 +0100)]
Remove unused/duplicate libraries from glretrace.

13 years agoPut all executables into the same to level build directory.
José Fonseca [Thu, 21 Apr 2011 07:24:57 +0000 (08:24 +0100)]
Put all executables into the same to level build directory.

13 years agoShave about 200mb of heap by not using full filterText on filtering.
Zack Rusin [Thu, 21 Apr 2011 04:10:20 +0000 (00:10 -0400)]
Shave about 200mb of heap by not using full filterText on filtering.

13 years agoFix minor errors in the apitracemodel
Zack Rusin [Thu, 21 Apr 2011 03:58:52 +0000 (23:58 -0400)]
Fix minor errors in the apitracemodel

13 years agoAdd the half float format.
Zack Rusin [Thu, 21 Apr 2011 01:21:39 +0000 (21:21 -0400)]
Add the half float format.

13 years agoAdd various sizing enums.
Zack Rusin [Wed, 20 Apr 2011 22:21:46 +0000 (18:21 -0400)]
Add various sizing enums.

13 years agoVarious cleanups.
Zack Rusin [Wed, 20 Apr 2011 22:21:11 +0000 (18:21 -0400)]
Various cleanups.

Clean the errors when loading a new trace and fix shortcuts.

13 years agoFix build on MacOSX.
José Fonseca [Wed, 20 Apr 2011 20:09:56 +0000 (21:09 +0100)]
Fix build on MacOSX.

13 years agoFix GL prototypes on MacOSX.
José Fonseca [Wed, 20 Apr 2011 20:09:28 +0000 (21:09 +0100)]
Fix GL prototypes on MacOSX.

13 years agoMore effective prevention against including system's glext.h.
José Fonseca [Wed, 20 Apr 2011 20:08:17 +0000 (21:08 +0100)]
More effective prevention against including system's glext.h.

13 years agoPrint an error message when not able to open X display.
José Fonseca [Wed, 20 Apr 2011 20:05:16 +0000 (21:05 +0100)]
Print an error message when not able to open X display.

13 years agoSkip windowing system calls but still allow state fetching on them.
Zack Rusin [Wed, 20 Apr 2011 04:30:50 +0000 (00:30 -0400)]
Skip windowing system calls but still allow state fetching on them.

13 years agoCall the action "error checking" instead of "benchmarking"
Zack Rusin [Wed, 20 Apr 2011 03:49:56 +0000 (23:49 -0400)]
Call the action "error checking" instead of "benchmarking"

the former is a lot more descriptive.

13 years agoGo to the selected error.
Zack Rusin [Wed, 20 Apr 2011 03:43:06 +0000 (23:43 -0400)]
Go to the selected error.

13 years agoAdd an action to show and hide the errors dock.
Zack Rusin [Wed, 20 Apr 2011 03:35:25 +0000 (23:35 -0400)]
Add an action to show and hide the errors dock.

13 years agoLarge chunk of showing the replay errors.
Zack Rusin [Wed, 20 Apr 2011 03:09:26 +0000 (23:09 -0400)]
Large chunk of showing the replay errors.

13 years agoOutput all warnings in the <call no>: <type>: <message> format.
Zack Rusin [Tue, 19 Apr 2011 20:44:46 +0000 (16:44 -0400)]
Output all warnings in the <call no>: <type>: <message> format.

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