]>
git.cworth.org Git - apitrace/log
Carl Worth [Thu, 17 Oct 2013 21:52:21 +0000 (14:52 -0700)]
retrace: Implement glxCopySubBufferMESA
This enables replay of a trace captured on ChromeOS.
Note: Replaying on EGL is not supported, (will trigger an abort),
since, as far as I know, EGL does not provide an equivalent function.
Alexander Monakov [Wed, 16 Oct 2013 16:51:47 +0000 (20:51 +0400)]
cli: use $LIB to handle multilib automagically on glibc
Alexander Monakov [Wed, 16 Oct 2013 16:17:15 +0000 (20:17 +0400)]
glretrace: reapply fix for #178 to original GLX code
José Fonseca [Tue, 15 Oct 2013 22:35:52 +0000 (15:35 -0700)]
Update to zlib version 1.2.8.
José Fonseca [Mon, 14 Oct 2013 23:41:25 +0000 (16:41 -0700)]
gui: Group on glPush/PopGroupMarkerEXT too.
José Fonseca [Mon, 14 Oct 2013 23:37:47 +0000 (16:37 -0700)]
readme: Mention KHR_debug for GLES too.
José Fonseca [Mon, 14 Oct 2013 23:29:20 +0000 (16:29 -0700)]
gui: Prevent assertion failure on debug builds.
José Fonseca [Mon, 14 Oct 2013 23:17:37 +0000 (16:17 -0700)]
readme: Provide a GLEW_KHR_debug example instead of GLEW_GREMEDY_string_marker.
Lawrence L Love [Sat, 12 Oct 2013 20:31:00 +0000 (13:31 -0700)]
apitrace README.markdown correct some typos
Reading through some of the documentation, spotted some typos
and thought might as well correct them while reading
Mostly missing or incomplete words. One section that meant to
display code didn't have the correct format to display it as such.
Signed-off-by: Lawrence L Love <lawrencex.l.love@intel.com>
José Fonseca [Mon, 14 Oct 2013 22:44:11 +0000 (15:44 -0700)]
gui: Fix debug build.
José Fonseca [Sat, 12 Oct 2013 00:24:47 +0000 (17:24 -0700)]
cli: Fix invalid option message.
ascii code was being printed.
Zack Rusin [Fri, 11 Oct 2013 22:32:25 +0000 (18:32 -0400)]
gui: fix pixel info on flipped images
Flipped images were still using the original image instead of
flipping the coordinates, thus returning the wrong data. Let's just
flip the y-axis to find the right location in the original image.
José Fonseca [Fri, 11 Oct 2013 21:21:39 +0000 (14:21 -0700)]
gltrace: Better tracing of GLX context attribs.
We were missing some cases.
Zack Rusin [Fri, 11 Oct 2013 22:02:26 +0000 (18:02 -0400)]
Implement grouping of calls.
Use glPushDebugGroup and glPopDebugGroup to create nested groups
of calls. It makes it easy to neatly group related calls (e.g.
from nested function calls) into subgroups.
José Fonseca [Fri, 11 Oct 2013 01:43:33 +0000 (18:43 -0700)]
d3dretrace: Dump D3D10 depth stencil surfaces as float.
José Fonseca [Fri, 11 Oct 2013 01:13:51 +0000 (02:13 +0100)]
glretrace: Fix object label dumping.
GetObjectLabel returns length excluding zero terminator.
José Fonseca [Thu, 10 Oct 2013 23:22:34 +0000 (16:22 -0700)]
cli: Don't use the DLL injection method for OpenGL on Windows 8.
Works around issue #172.
José Fonseca [Thu, 10 Oct 2013 18:10:26 +0000 (11:10 -0700)]
glstate: Dump more object labels.
José Fonseca [Thu, 10 Oct 2013 17:06:04 +0000 (10:06 -0700)]
Update documentation for object label support.
José Fonseca [Thu, 10 Oct 2013 16:48:12 +0000 (09:48 -0700)]
eglretrace: Fix window size hints problem.
As suggested by Adrinael and confirmed by Alexander Monakov in issue #178.
Chad Versace [Thu, 10 Oct 2013 16:33:24 +0000 (09:33 -0700)]
specs: Recognize GL_PROGRAM_BINARY_LENGTH
This fixes tracing the WebGL Aquarium demo on Chrome OS. Without the
fix, the demo window remains black during tracing.
José Fonseca [Thu, 10 Oct 2013 01:40:14 +0000 (18:40 -0700)]
glstate: Dump a few object labels.
Peter Lohrmann [Fri, 12 Jul 2013 20:15:25 +0000 (16:15 -0400)]
trace: Protect against uninitialized pointers if debug extensions are not exposed by the underlying driver and the user is attempting to query for a message log or object label.
Sets the return parameters to NULL
Peter Lohrmann [Mon, 17 Jun 2013 20:20:04 +0000 (16:20 -0400)]
trace: Better fallback of glGetDebugMessageLog*
If glGetDebugMessageLog* is not exposed by the underlying driver during
tracing, the function should return a value of 0 (meaning that no
strings were in the log) instead of aborting.
Peter Lohrmann [Mon, 3 Jun 2013 21:58:41 +0000 (14:58 -0700)]
trace: Additional support for GL_KHR_debug, GL_ARB_debug_output, and GL_AMD_debug_output.
* Mark some of the entrypoints as having sideeffects so that they will
be replayed and can be seen in other 3rd party tools.
* Add the three additional extensions to the supported extensions list.
* Create new list of debug_entrypoints which may be implemented by a
driver. These entrypoints need to be handled differently from the
marker_entrypoints in that debug_entrypoints may be exposed by the
driver via wglGetProcAddress and apitrace should pass the calls along
if they are available. The marker_extensions are not expected to be
implemented by the driver, so wglGetProcAddress(..) does not need to
be called on them.
Note that even though this causes apitrace to return the extension
strings, the full extension implementation has not been completed, but
the entrypoints are exposed for the application to call.
Signed-off-by: José Fonseca <jfonseca@vmware.com>
José Fonseca [Thu, 26 Sep 2013 17:12:25 +0000 (18:12 +0100)]
glretrace: Remove spurious line in previous commit.
José Fonseca [Thu, 26 Sep 2013 16:54:52 +0000 (17:54 +0100)]
glretrace: Always pass a format appropriate for the internalFormat when reading pixels.
Fixes dumping of GL_RGBA8I framebuffers.
José Fonseca [Mon, 23 Sep 2013 13:15:56 +0000 (14:15 +0100)]
d3dretrace: Dump D3DFMT_D32F_LOCKABLE too.
José Fonseca [Fri, 20 Sep 2013 16:03:36 +0000 (17:03 +0100)]
d3dretrace: Dump D3D9 depth stencil.
Only works for D3DFMT_D16_LOCKABLE though.
José Fonseca [Fri, 20 Sep 2013 09:50:45 +0000 (10:50 +0100)]
backtrace: Allow to build without libbacktrace.
For apitrace integrated into Regal they want to opt-out of backtrace
support, for now. One reason is that it's fairly platform-specific.
Another concern is potential build issue across various Linux flavors.
Based on Nigel Stewart patch on issue #168.
José Fonseca [Fri, 20 Sep 2013 14:37:17 +0000 (15:37 +0100)]
cmake: Link ${LIBBACKTRACE_LIBRARIES} once.
José Fonseca [Fri, 20 Sep 2013 14:27:12 +0000 (15:27 +0100)]
os: Fix missing os::dump_backtrace symbol in Android builds.
Alexander Monakov [Fri, 12 Jul 2013 20:37:17 +0000 (00:37 +0400)]
common: dump backtrace on signals
Alexander Monakov [Fri, 12 Jul 2013 20:17:12 +0000 (00:17 +0400)]
common: carve out RawStackFrame::dump
Alexander Monakov [Fri, 12 Jul 2013 19:13:47 +0000 (23:13 +0400)]
common/backtrace: move namespace trace -> os
Alexander Monakov [Fri, 12 Jul 2013 17:26:25 +0000 (21:26 +0400)]
common: rename trace_backtrace.* -> os_backtrace.*
Alexander Monakov [Fri, 12 Jul 2013 21:05:39 +0000 (01:05 +0400)]
thirdparty/libbacktrace: update from upstream
José Fonseca [Thu, 19 Sep 2013 17:19:22 +0000 (18:19 +0100)]
d3dretrace: Eliminate buffer overflow converting D3DFMT_R5G6B5.
José Fonseca [Tue, 17 Sep 2013 15:21:56 +0000 (16:21 +0100)]
Merge branch 'hdr-dump'
Support for high-dynamic-range surface dumps.
José Fonseca [Tue, 17 Sep 2013 14:22:50 +0000 (15:22 +0100)]
Rescale the image pixels using the full precision.
José Fonseca [Mon, 16 Sep 2013 13:58:34 +0000 (14:58 +0100)]
d3dretrace: Make --driver work correctly on DXGI1.1
Need to intercept IDXGIFactory1::EnumAdapters1 too.
José Fonseca [Mon, 16 Sep 2013 13:59:33 +0000 (14:59 +0100)]
retracediff: Dump mismtached float images to stdout.
Should have an option in the future, as it will be too verbose in general.
José Fonseca [Mon, 16 Sep 2013 13:58:34 +0000 (14:58 +0100)]
d3dretrace: Make --driver work correctly on DXGI1.1
Need to intercept IDXGIFactory1::EnumAdapters1 too.
José Fonseca [Mon, 16 Sep 2013 13:57:30 +0000 (14:57 +0100)]
image: Non-standard PNM format variant for 4-float images.
José Fonseca [Mon, 16 Sep 2013 13:21:39 +0000 (14:21 +0100)]
retracediff: Support floating point images.
Via numpy.
José Fonseca [Mon, 16 Sep 2013 13:18:05 +0000 (14:18 +0100)]
image: Yet another fix for the PFM dumping.
José Fonseca [Mon, 16 Sep 2013 12:07:00 +0000 (13:07 +0100)]
image: Write the scale factor / endianness line for PFM too.
José Fonseca [Mon, 16 Sep 2013 11:21:37 +0000 (12:21 +0100)]
image: Fix PNM dumping for 2/4 channels.
José Fonseca [Mon, 16 Sep 2013 11:20:40 +0000 (12:20 +0100)]
d3dretrace: Dump DXGI_FORMAT_R32G32B32A32_FLOAT images in floating point.
Zack Rusin [Thu, 12 Sep 2013 21:41:57 +0000 (17:41 -0400)]
gui: make sure that the alpha channel is initialized
For surfaces with less than four channels we weren't
initializing the alpha channel resulting in an image
that had garbage for alpha.
Zack Rusin [Thu, 12 Sep 2013 21:21:51 +0000 (17:21 -0400)]
gui: show the original pixel values in the surface viewer
Image viewer now holds the original image surface which means
that even though it has to display the flattened version it
can correctly report the exact pixel value on every surface.
José Fonseca [Thu, 12 Sep 2013 16:27:04 +0000 (17:27 +0100)]
glretrace: Dump depth buffers as floating point images.
José Fonseca [Thu, 12 Sep 2013 16:26:34 +0000 (17:26 +0100)]
ui: Handle float images in dumps.
José Fonseca [Thu, 12 Sep 2013 16:25:04 +0000 (17:25 +0100)]
image: Support reading PFM images.
José Fonseca [Thu, 12 Sep 2013 16:21:37 +0000 (17:21 +0100)]
image: Fix allocation of floating point images.
José Fonseca [Wed, 11 Sep 2013 17:45:43 +0000 (18:45 +0100)]
d3dretrace: Fix MinGW build.
José Fonseca [Wed, 11 Sep 2013 17:45:43 +0000 (18:45 +0100)]
d3dretrace: Fix MinGW build.
José Fonseca [Wed, 11 Sep 2013 17:42:07 +0000 (18:42 +0100)]
gui: load image data via the Image class.
A bit hackish.
A stepping stone to store images with Image class instead of QImage.
José Fonseca [Wed, 11 Sep 2013 17:41:00 +0000 (18:41 +0100)]
image: Add floating point support.
WIP. Not throughly tested.
José Fonseca [Wed, 11 Sep 2013 17:16:18 +0000 (18:16 +0100)]
image: Allow to read PNG from a C++ stream.
José Fonseca [Wed, 11 Sep 2013 17:14:22 +0000 (18:14 +0100)]
image: Move helpers to respective modules.
José Fonseca [Wed, 11 Sep 2013 17:10:50 +0000 (18:10 +0100)]
image: Fix reading of PNG images with different number of channels.
Nigel Stewart [Mon, 19 Aug 2013 15:58:47 +0000 (10:58 -0500)]
Build fixes for VS2013
https://github.com/p3/regal/pull/97
Signed-off-by: José Fonseca <jfonseca@vmware.com>
José Fonseca [Wed, 11 Sep 2013 13:15:13 +0000 (14:15 +0100)]
d3dretrace: Fix MSVC build.
José Fonseca [Wed, 4 Sep 2013 09:49:32 +0000 (10:49 +0100)]
d3dretrace: Dump textures of all shader stages.
Zack Rusin [Wed, 11 Sep 2013 00:30:59 +0000 (20:30 -0400)]
gui: Implement a new surface viewer
Adds support for showing individual pixels and zooming in on the
image itself. All ready to be used for showing the actual original
pixel values, rather than the fake qimage pixels which it shows
right now.
José Fonseca [Thu, 22 Aug 2013 16:39:11 +0000 (17:39 +0100)]
retracediff: Only diff state if specified by command line option.
As it can be very slow.
José Fonseca [Mon, 19 Aug 2013 15:42:07 +0000 (16:42 +0100)]
Check for ARB_sampler_objects before dumping its state.
Tested-by: Min-Yu Huang <min-yuhuang@vmware.com>
Min-Yu Huang [Mon, 19 Aug 2013 14:41:52 +0000 (15:41 +0100)]
Take GL_SAMPLER_BINDING in consideration.
Fixed the issue that GL_SAMPLER_BINDING is only shown globally under
'Parameters' for the last activated texture unit. We should show
GL_SAMPLER_BINDING for each texture unit.
In this change, we also introduce GL_SAMPLER under each texture unit if
the sampler is bound.
Signed-off-by: José Fonseca <jfonseca@vmware.com>
José Fonseca [Thu, 25 Jul 2013 19:18:58 +0000 (20:18 +0100)]
cli: Fix sed message.
José Fonseca [Mon, 22 Jul 2013 18:26:01 +0000 (19:26 +0100)]
Use EGLAttribArray all the time.
Andreas Hartmetz [Mon, 22 Jul 2013 17:57:50 +0000 (19:57 +0200)]
Trivial formatting / consistency fixes.
Andreas Hartmetz [Mon, 22 Jul 2013 17:56:40 +0000 (19:56 +0200)]
Use the correct terminator EGL_NONE for eglChooseConfig attrib_list.
José Fonseca [Sat, 20 Jul 2013 14:34:51 +0000 (15:34 +0100)]
Re-enable rtti again.
It causes problems with tr1/shared_ptr.h implementation on several platforms.
José Fonseca [Sat, 20 Jul 2013 14:34:24 +0000 (15:34 +0100)]
gltrace: Simplify AttribArray further.
Make it look more like an Array.
José Fonseca [Sat, 20 Jul 2013 14:27:29 +0000 (15:27 +0100)]
cgltrace: Fix CGLChoosePixelFormat prototype.
And implify AttribList in the process.
José Fonseca [Sat, 20 Jul 2013 14:06:01 +0000 (15:06 +0100)]
glretrace: Silence warning on wgl.
Nigel Stewart [Fri, 19 Jul 2013 14:32:47 +0000 (09:32 -0500)]
Build: Disable RTTI support at build-time to discourage the use of dynamic_cast, etc
Nigel Stewart [Thu, 18 Jul 2013 00:40:25 +0000 (19:40 -0500)]
glimports: Check for iOS and skip OpenGL and CGL as appropriate.
The Regal build for iOS supporting apitrace needs this
change to avoid a compilation error.
Nigel Stewart [Fri, 12 Jul 2013 14:30:41 +0000 (09:30 -0500)]
glretrace: GLX and WGL support for ES2/EGL traces.
I was able to glretrace Gears for Android on x86 Linux with
NVIDIA (non-DRI supporting) driver by enabling
GLX_CONTEXT_ES2_PROFILE_BIT_EXT for the
glXCreateContextAttribsARB path.
Unfortunately eglretrace via Mesa es2/egl doesn't seem
to be compatible the NVIDIA desktop driver.
José Fonseca [Sat, 20 Jul 2013 13:54:02 +0000 (14:54 +0100)]
wgltrace: Simplify pixel format attrib description.
No point is keeping two separate tables.
José Fonseca [Sat, 20 Jul 2013 13:53:14 +0000 (14:53 +0100)]
Merge branch 'attrib_list'
Conflicts:
specs/glxapi.py
José Fonseca [Sat, 20 Jul 2013 13:05:10 +0000 (14:05 +0100)]
wgltrace: Prevent duplicate variable declaration.
Peter Lohrmann [Wed, 10 Jul 2013 15:08:14 +0000 (11:08 -0400)]
qapitrace: Add option to replay in singlethreaded mode
Some traces fail to replay (hang) if glretrace does not have
--singelthread on the command line, this change makes a UI option
available.
José Fonseca [Fri, 19 Jul 2013 23:20:06 +0000 (00:20 +0100)]
glstate: Try to match the number of channels in internal format.
José Fonseca [Fri, 19 Jul 2013 22:30:48 +0000 (23:30 +0100)]
glstate: Better support for integer textures dumps.
Andreas Hartmetz [Fri, 12 Jul 2013 09:51:45 +0000 (11:51 +0200)]
Remove the last helper for the old incomplete attrib_list support.
Andreas Hartmetz [Fri, 12 Jul 2013 09:50:39 +0000 (11:50 +0200)]
WGL: Support float-based attrib_list parameters.
Followup to making it possible in the code generator.
Andreas Hartmetz [Fri, 12 Jul 2013 09:37:35 +0000 (11:37 +0200)]
Allow float-based attrib_lists as found in WGL.
It also turns out that no "type" member is needed in AttribArray,
so remove it.
Andreas Hartmetz [Fri, 12 Jul 2013 09:07:41 +0000 (11:07 +0200)]
Remove the now unused _AttribList_size.
_AttribPairList_size is still used for WGL's float-based attribs.
Andreas Hartmetz [Fri, 12 Jul 2013 09:49:39 +0000 (11:49 +0200)]
GLX: More consistent naming of an AttribArray.
Andreas Hartmetz [Fri, 12 Jul 2013 08:46:51 +0000 (10:46 +0200)]
Update GLX attrib_list support from GLX 1.3 to 1.4.
Andreas Hartmetz [Fri, 12 Jul 2013 08:12:11 +0000 (10:12 +0200)]
Warn on unknown attrib_list keys.
José Fonseca [Fri, 12 Jul 2013 06:48:22 +0000 (07:48 +0100)]
Aggregate all info on debugging into a single place.
Nigel Stewart [Wed, 10 Jul 2013 14:01:01 +0000 (09:01 -0500)]
Replace dynamic_cast with virtual functions.
apitrace can be built with without RTTI (runtime type information)
providing that dynamic_cast isn't used.
Andreas Hartmetz [Tue, 9 Jul 2013 22:12:39 +0000 (00:12 +0200)]
More WGL support. It's ugly and the resulting code probably doesn't compile.
Andreas Hartmetz [Tue, 9 Jul 2013 20:56:31 +0000 (22:56 +0200)]
attrib_list support for WGL function wglCreateContextAttribsARB.
Andreas Hartmetz [Tue, 9 Jul 2013 20:54:49 +0000 (22:54 +0200)]
attrib_list support for glXChooseVisual, the last GLX function.
It is one of the two functions known to apitrace that can have
attrib_list keys not followed by a value.
Andreas Hartmetz [Tue, 9 Jul 2013 20:52:46 +0000 (22:52 +0200)]
Use the right attrib_list terminator and support the remaining functions.
Remaining functions were
eglLockSurfaceKHR
eglCreateSyncKHR
eglCreateFenceSyncNV
Andreas Hartmetz [Tue, 9 Jul 2013 20:43:15 +0000 (22:43 +0200)]
Improvements in AttribArray / attrib/list code generation.
- Treat unknown keys the same way while counting elements and while
processing them (they are assumed to be followed by an int value).
- Support custom terminators.
- Serialize the terminator.
- Reduce the line count of generated code a bit.
- Add forgotten begin/endElement() around writing the keys.
- Improve comment wording.