]> git.cworth.org Git - apitrace/log
apitrace
12 years agosnapdiff: Remove debugging print statement.
Carl Worth [Mon, 9 Apr 2012 18:27:22 +0000 (11:27 -0700)]
snapdiff: Remove debugging print statement.

I assume this print statement is just some leftover from
debugging. The output isn't meaningful to the user.

12 years agocli: Add a simple implementation of "apitrace dump-images"
Carl Worth [Wed, 28 Mar 2012 01:13:14 +0000 (18:13 -0700)]
cli: Add a simple implementation of "apitrace dump-images"

This merely calls out to the existing glretrace command with
appropriate options for generating snapshots. This at least provides
the image-dumping capability within the unified command-line
interface.

In the future, it will likely make sens to make dump-images do things
in-process.

12 years agoFix D3D10 flags.
José Fonseca [Wed, 11 Apr 2012 11:04:00 +0000 (12:04 +0100)]
Fix D3D10 flags.

12 years agoAvoid output blobs.
José Fonseca [Sat, 7 Apr 2012 09:49:35 +0000 (10:49 +0100)]
Avoid output blobs.

Not really supported.

12 years agoDebug output of region mappings.
José Fonseca [Sat, 7 Apr 2012 09:23:33 +0000 (10:23 +0100)]
Debug output of region mappings.

12 years agoFix type mismatch in enum deserialization.
José Fonseca [Mon, 2 Apr 2012 06:10:48 +0000 (08:10 +0200)]
Fix type mismatch in enum deserialization.

12 years agoHandle glMapObjectBufferATI/glUnmapObjectBufferATI.
José Fonseca [Thu, 5 Apr 2012 18:55:53 +0000 (19:55 +0100)]
Handle glMapObjectBufferATI/glUnmapObjectBufferATI.

12 years agoAdd missing os_time include.
José Fonseca [Sun, 1 Apr 2012 20:47:30 +0000 (22:47 +0200)]
Add missing os_time include.

12 years agoSeparate allocation and extraction in retracing.
José Fonseca [Sat, 7 Apr 2012 09:50:53 +0000 (10:50 +0100)]
Separate allocation and extraction in retracing.

12 years agoRecognize zero SizeToLock as full buffer.
José Fonseca [Sat, 7 Apr 2012 09:50:17 +0000 (10:50 +0100)]
Recognize zero SizeToLock as full buffer.

12 years agoAvoid output blobs.
José Fonseca [Sat, 7 Apr 2012 09:49:35 +0000 (10:49 +0100)]
Avoid output blobs.

Not really supported.

12 years agoAllow InOut arguments.
José Fonseca [Sat, 7 Apr 2012 09:42:50 +0000 (10:42 +0100)]
Allow InOut arguments.

12 years agoDebug output of region mappings.
José Fonseca [Sat, 7 Apr 2012 09:23:33 +0000 (10:23 +0100)]
Debug output of region mappings.

12 years agoUse ANSI escape codes when inside WINE.
José Fonseca [Sat, 7 Apr 2012 09:13:37 +0000 (10:13 +0100)]
Use ANSI escape codes when inside WINE.

12 years agoCreate window on d3dretrace.
José Fonseca [Fri, 6 Apr 2012 06:49:45 +0000 (07:49 +0100)]
Create window on d3dretrace.

12 years agoRevert "Improve IUnknown::QueryInterface"
José Fonseca [Thu, 5 Apr 2012 21:58:43 +0000 (22:58 +0100)]
Revert "Improve IUnknown::QueryInterface"

This reverts commit 7f3688bb956928bfef266ebbe0b3ccbf6e984559.

12 years agoDisable BlockingIODevice with QJSON.
José Fonseca [Thu, 5 Apr 2012 19:06:42 +0000 (20:06 +0100)]
Disable BlockingIODevice with QJSON.

It looks like it doesn't work reliably in all cases, at least with
certain versions.

12 years agoFix crash when using apitrace trim's -o option.
Kenneth Graunke [Thu, 5 Apr 2012 17:51:26 +0000 (10:51 -0700)]
Fix crash when using apitrace trim's -o option.

The -o option takes an argument (the filename), so the getopt string
needs to be 'o:', not 'o'.  Otherwise, no argument is parsed, optarg
remains NULL, and we crash on "output = optarg".

12 years agoRemove unneeded include.
José Fonseca [Thu, 5 Apr 2012 18:56:19 +0000 (19:56 +0100)]
Remove unneeded include.

12 years agoAdd missing dependencies to glproc.
José Fonseca [Thu, 5 Apr 2012 18:56:08 +0000 (19:56 +0100)]
Add missing dependencies to glproc.

12 years agoAvoid rebuilding types unnecessarily.
José Fonseca [Thu, 5 Apr 2012 18:59:56 +0000 (19:59 +0100)]
Avoid rebuilding types unnecessarily.

12 years agoAvoid conflicting tmps.
José Fonseca [Thu, 5 Apr 2012 18:58:38 +0000 (19:58 +0100)]
Avoid conflicting tmps.

12 years agoWarn on null this pointer.
José Fonseca [Thu, 5 Apr 2012 18:58:20 +0000 (19:58 +0100)]
Warn on null this pointer.

12 years agoImprove IUnknown::QueryInterface
José Fonseca [Thu, 5 Apr 2012 18:58:00 +0000 (19:58 +0100)]
Improve IUnknown::QueryInterface

12 years agoFix handles.
José Fonseca [Thu, 5 Apr 2012 18:57:45 +0000 (19:57 +0100)]
Fix handles.

12 years agoglMapObjectBufferATI
José Fonseca [Thu, 5 Apr 2012 18:57:12 +0000 (19:57 +0100)]
glMapObjectBufferATI

12 years agoMore D3D9 spec tweaks.
José Fonseca [Thu, 5 Apr 2012 18:57:02 +0000 (19:57 +0100)]
More D3D9 spec tweaks.

12 years agoRemove unneeded include.
José Fonseca [Thu, 5 Apr 2012 18:56:19 +0000 (19:56 +0100)]
Remove unneeded include.

12 years agoAdd missing dependencies to glproc.
José Fonseca [Thu, 5 Apr 2012 18:56:08 +0000 (19:56 +0100)]
Add missing dependencies to glproc.

12 years agoHandle glMapObjectBufferATI/glUnmapObjectBufferATI.
José Fonseca [Thu, 5 Apr 2012 18:55:53 +0000 (19:55 +0100)]
Handle glMapObjectBufferATI/glUnmapObjectBufferATI.

12 years agoSeveral improvements to C decl parser.
José Fonseca [Thu, 5 Apr 2012 10:23:11 +0000 (11:23 +0100)]
Several improvements to C decl parser.

12 years agoMore verbose unknown IID warnings.
José Fonseca [Thu, 5 Apr 2012 10:22:53 +0000 (11:22 +0100)]
More verbose unknown IID warnings.

12 years agoTrace ID3D10Debug interface.
José Fonseca [Thu, 5 Apr 2012 10:20:22 +0000 (11:20 +0100)]
Trace ID3D10Debug interface.

12 years agoRecognize more D3D10 flags.
José Fonseca [Thu, 5 Apr 2012 10:18:27 +0000 (11:18 +0100)]
Recognize more D3D10 flags.

12 years agoMake obj pointers first class citizens.
José Fonseca [Thu, 5 Apr 2012 06:10:30 +0000 (07:10 +0100)]
Make obj pointers first class citizens.

12 years agoFix glretrace build.
José Fonseca [Mon, 2 Apr 2012 20:00:53 +0000 (21:00 +0100)]
Fix glretrace build.

12 years agoFix type mismatch in enum deserialization.
José Fonseca [Mon, 2 Apr 2012 06:10:48 +0000 (08:10 +0200)]
Fix type mismatch in enum deserialization.

12 years agoDeserialize structures.
José Fonseca [Mon, 2 Apr 2012 06:10:06 +0000 (08:10 +0200)]
Deserialize structures.

12 years agoRename ConstRemover.
José Fonseca [Mon, 2 Apr 2012 06:07:32 +0000 (08:07 +0200)]
Rename ConstRemover.

12 years agoFix D33D9 link failures.
José Fonseca [Sun, 1 Apr 2012 20:48:45 +0000 (22:48 +0200)]
Fix D33D9 link failures.

12 years agoFix zeroing of unsupported arguments for complex types.
José Fonseca [Sun, 1 Apr 2012 20:48:24 +0000 (22:48 +0200)]
Fix zeroing of unsupported arguments for complex types.

12 years agoAdd missing os_time include.
José Fonseca [Sun, 1 Apr 2012 20:47:30 +0000 (22:47 +0200)]
Add missing os_time include.

12 years agoDescribe C++ references accurately.
José Fonseca [Sun, 1 Apr 2012 20:47:11 +0000 (22:47 +0200)]
Describe C++ references accurately.

12 years agoAdjust D3D9's sideeffect settings.
José Fonseca [Sun, 1 Apr 2012 20:45:09 +0000 (22:45 +0200)]
Adjust D3D9's sideeffect settings.

12 years agoAllow to include EGL on MacOSX.
José Fonseca [Fri, 30 Mar 2012 20:22:15 +0000 (21:22 +0100)]
Allow to include EGL on MacOSX.

12 years agoMerge branch 'master' into d3dretrace
José Fonseca [Fri, 30 Mar 2012 19:41:25 +0000 (20:41 +0100)]
Merge branch 'master' into d3dretrace

Conflicts:
retrace.py

12 years agoFix build without X11.
José Fonseca [Fri, 30 Mar 2012 18:58:20 +0000 (19:58 +0100)]
Fix build without X11.

12 years agoBuild retrace sources only once.
José Fonseca [Fri, 30 Mar 2012 06:15:17 +0000 (07:15 +0100)]
Build retrace sources only once.

12 years agoDrop TRACE_EGL.
José Fonseca [Thu, 29 Mar 2012 23:18:16 +0000 (00:18 +0100)]
Drop TRACE_EGL.

Also unnecessary.

12 years agoDrop HAVE_EGL.
José Fonseca [Thu, 29 Mar 2012 22:38:55 +0000 (23:38 +0100)]
Drop HAVE_EGL.

Unnecessary now that we budle EGL/GLES headers

12 years agoFix typo in wgl function call detection.
José Fonseca [Thu, 29 Mar 2012 19:13:10 +0000 (20:13 +0100)]
Fix typo in wgl function call detection.

12 years agoUse either glGetTexImage() or bind the texture to a FBO to get the contents.
Alexandros Frantzis [Mon, 28 Nov 2011 10:04:05 +0000 (12:04 +0200)]
Use either glGetTexImage() or bind the texture to a FBO to get the contents.

Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
12 years agoInfer texture size on OpenGL ES via TexSubImage.
José Fonseca [Thu, 29 Mar 2012 11:38:05 +0000 (12:38 +0100)]
Infer texture size on OpenGL ES via TexSubImage.

12 years agoMore code simplification.
José Fonseca [Thu, 29 Mar 2012 09:42:28 +0000 (10:42 +0100)]
More code simplification.

12 years agoSimplify image size determination.
José Fonseca [Thu, 29 Mar 2012 09:28:45 +0000 (10:28 +0100)]
Simplify image size determination.

12 years agoSplit image dumping to a separate source file.
José Fonseca [Thu, 29 Mar 2012 08:53:15 +0000 (09:53 +0100)]
Split image dumping to a separate source file.

12 years agoSplit gl shader dumping into a separate file.
José Fonseca [Thu, 29 Mar 2012 08:42:41 +0000 (09:42 +0100)]
Split gl shader dumping into a separate file.

12 years agoRename glstate.py to glstate_params.py.
José Fonseca [Thu, 29 Mar 2012 08:42:10 +0000 (09:42 +0100)]
Rename glstate.py to glstate_params.py.

To match generated source file name.

12 years agoUpdate drawable on variations of glViewport (issue #71)
José Fonseca [Thu, 29 Mar 2012 07:19:19 +0000 (08:19 +0100)]
Update drawable on variations of glViewport (issue #71)

Thanks to Gregory (gregory38) for spotting this.

12 years agoFix compile error "isatty was not declared"; missing unistd.h include
Martin Olsson [Mon, 26 Mar 2012 08:40:45 +0000 (10:40 +0200)]
Fix compile error "isatty was not declared"; missing unistd.h include

When I built apitrace on Fedora 16, using the usual:

cmake -H. -Bbuild
make -C build

...then I got this compile error:

apitrace/cli/cli_dump.cpp: In function ‘int command(int, char**)’:
apitrace/cli/cli_dump.cpp:176:25: error: ‘isatty’ was not declared in this scope

12 years agoShow important retrace messages long enough to read.
José Fonseca [Tue, 27 Mar 2012 23:13:55 +0000 (00:13 +0100)]
Show important retrace messages long enough to read.

12 years agoAuto detect the API from the trace.
José Fonseca [Tue, 27 Mar 2012 22:54:30 +0000 (23:54 +0100)]
Auto detect the API from the trace.

Saves key-presses on the gui for EGL traces.

Might be handy to implement a top level "apitrace retrace" command too.

12 years agoMerge remote-tracking branch 'github/master' into gui-unbuffered-retrace
José Fonseca [Mon, 26 Mar 2012 09:29:32 +0000 (10:29 +0100)]
Merge remote-tracking branch 'github/master' into gui-unbuffered-retrace

Conflicts:
gui/retracer.cpp

12 years agoFix includes.
José Fonseca [Mon, 26 Mar 2012 08:49:01 +0000 (09:49 +0100)]
Fix includes.

12 years agoIgnore glXGetCurrentContext in tracediff2.py too.
José Fonseca [Tue, 20 Mar 2012 17:53:41 +0000 (17:53 +0000)]
Ignore glXGetCurrentContext in tracediff2.py too.

12 years agoRemove ApiTrace::FrameMarker.
José Fonseca [Sun, 25 Mar 2012 22:12:20 +0000 (23:12 +0100)]
Remove ApiTrace::FrameMarker.

Not really used. Also, calls now have flags with this sort of info.

12 years agoMake frame thumbnail size consistent.
José Fonseca [Sun, 25 Mar 2012 19:59:24 +0000 (20:59 +0100)]
Make frame thumbnail size consistent.

12 years agoGet JSON state to not be fully buffered into memory.
José Fonseca [Sun, 25 Mar 2012 16:25:24 +0000 (17:25 +0100)]
Get JSON state to not be fully buffered into memory.

12 years agoDon't buffer all stdout from retrace when generating thumbnails.
José Fonseca [Sun, 25 Mar 2012 11:46:04 +0000 (12:46 +0100)]
Don't buffer all stdout from retrace when generating thumbnails.

12 years agoProcess stderr one line at time.
José Fonseca [Sat, 24 Mar 2012 10:06:56 +0000 (10:06 +0000)]
Process stderr one line at time.

Instead of reading all into memory.

Benefit is probably only marginal, but code is equally lean.

12 years agoDon't read all json output to memory.
José Fonseca [Sat, 24 Mar 2012 09:46:24 +0000 (09:46 +0000)]
Don't read all json output to memory.

Should help with big dumps.

12 years agoUpdate news.
José Fonseca [Sat, 24 Mar 2012 09:41:36 +0000 (09:41 +0000)]
Update news.

12 years agoMerge branch 'gui-thumbnails'
José Fonseca [Sat, 24 Mar 2012 09:30:51 +0000 (09:30 +0000)]
Merge branch 'gui-thumbnails'

12 years agoMake thumbnailing an non-automatic action.
José Fonseca [Sat, 24 Mar 2012 09:27:27 +0000 (09:27 +0000)]
Make thumbnailing an non-automatic action.

This allows to avoid performance issues with big traces, and also
give opportunity to the user to change the replay settings.

12 years agoDefer reading all standard error.
José Fonseca [Sat, 24 Mar 2012 09:13:21 +0000 (09:13 +0000)]
Defer reading all standard error.

I'm not sure, but I suspect this may cause all standard output to be
buffered until the process finishes.

12 years agoCapture thumbnails only after the trace finished loading.
José Fonseca [Sat, 24 Mar 2012 08:03:14 +0000 (08:03 +0000)]
Capture thumbnails only after the trace finished loading.

12 years agoRemoved unused copy of thumbnails.
José Fonseca [Sat, 24 Mar 2012 08:00:47 +0000 (08:00 +0000)]
Removed unused copy of thumbnails.

12 years agoPass list of frames by reference.
José Fonseca [Sat, 24 Mar 2012 07:56:45 +0000 (07:56 +0000)]
Pass list of frames by reference.

12 years agoAvoid QImage object copies by using references.
José Fonseca [Sat, 24 Mar 2012 07:44:43 +0000 (07:44 +0000)]
Avoid QImage object copies by using references.

12 years agoFix size comparisons in traceloader.cpp.
José Fonseca [Thu, 22 Mar 2012 16:26:47 +0000 (16:26 +0000)]
Fix size comparisons in traceloader.cpp.

This would never result in buffer in overflows, but this is more correct.

12 years agoPrevent another buffer overflow.
José Fonseca [Thu, 22 Mar 2012 16:22:33 +0000 (16:22 +0000)]
Prevent another buffer overflow.

12 years agoFix buffer overflow.
Dan McCabe [Thu, 22 Mar 2012 12:18:55 +0000 (12:18 +0000)]
Fix buffer overflow.

12 years agoFix block indentation.
José Fonseca [Wed, 21 Mar 2012 06:49:41 +0000 (06:49 +0000)]
Fix block indentation.

12 years agoConsider glCallList(s) as a drawing call.
José Fonseca [Wed, 21 Mar 2012 06:46:46 +0000 (06:46 +0000)]
Consider glCallList(s) as a drawing call.

Not necessarily true, but most often the case.

12 years agoDocument how to use retracediff on Windows.
José Fonseca [Wed, 21 Mar 2012 18:58:19 +0000 (18:58 +0000)]
Document how to use retracediff on Windows.

12 years agoEnable dumping depth surfaces as rgba.
José Fonseca [Wed, 21 Mar 2012 09:56:28 +0000 (09:56 +0000)]
Enable dumping depth surfaces as rgba.

By changing the source code. Ugly but better than nothing.

12 years agoAllow to turn off transparency on image viewer.
José Fonseca [Wed, 21 Mar 2012 08:49:40 +0000 (08:49 +0000)]
Allow to turn off transparency on image viewer.

12 years agoUse the wgl* entrypoints instead of the GDI entrypoints when TRACE_LIBGL is set.
José Fonseca [Tue, 20 Mar 2012 17:47:04 +0000 (17:47 +0000)]
Use the wgl* entrypoints instead of the GDI entrypoints when TRACE_LIBGL is set.

This enables testing multiple OpenGL implementations on Windows without
installing.  Useful to use retracediff.py script on Windows.

12 years agoFix replace_dissimilar.
José Fonseca [Mon, 19 Mar 2012 17:35:36 +0000 (17:35 +0000)]
Fix replace_dissimilar.

Left over iterator code was cauing problems.

12 years agoAdd a disabled hack to force interpreting depth buffers as RGBA.
José Fonseca [Sun, 18 Mar 2012 10:13:04 +0000 (10:13 +0000)]
Add a disabled hack to force interpreting depth buffers as RGBA.

In order to visualize full dynamic range, until we have something
better in place.

12 years agoAttempt to allow to control image dynamic range.
José Fonseca [Fri, 25 Nov 2011 15:51:09 +0000 (15:51 +0000)]
Attempt to allow to control image dynamic range.

For better visualization of depth/stencil images (issue#55), and also to
allow view float/integer images in the future.

12 years agoPlug several leaks when retracing.
José Fonseca [Thu, 3 Nov 2011 19:35:53 +0000 (19:35 +0000)]
Plug several leaks when retracing.

Use a scoped allocator to help keep track of the things that need to be
freed.

12 years agoMerge branch 'master' into d3dretrace
José Fonseca [Sat, 17 Mar 2012 22:43:27 +0000 (22:43 +0000)]
Merge branch 'master' into d3dretrace

12 years agoUpdate to libpng 1.5.9.
José Fonseca [Sat, 17 Mar 2012 22:36:12 +0000 (22:36 +0000)]
Update to libpng 1.5.9.

12 years agoLookup call state on double-click.
José Fonseca [Sun, 30 Oct 2011 10:56:04 +0000 (10:56 +0000)]
Lookup call state on double-click.

12 years agoOptimize tracediff2.
José Fonseca [Sat, 17 Mar 2012 21:07:02 +0000 (21:07 +0000)]
Optimize tracediff2.

12 years agoDisable std::cout's stdio sync when pickling.
José Fonseca [Sat, 17 Mar 2012 20:56:10 +0000 (20:56 +0000)]
Disable std::cout's stdio sync when pickling.

12 years agoImprove tracediff2's dumping.
José Fonseca [Sat, 17 Mar 2012 17:23:39 +0000 (17:23 +0000)]
Improve tracediff2's dumping.

12 years agoPickle blobs as bytearrays.
José Fonseca [Sat, 17 Mar 2012 16:12:22 +0000 (16:12 +0000)]
Pickle blobs as bytearrays.

12 years agoCompensate for the lack of LD_PRELOAD support on ANDROID
José Fonseca [Mon, 12 Mar 2012 20:46:53 +0000 (20:46 +0000)]
Compensate for the lack of LD_PRELOAD support on ANDROID

Untested.