]> git.cworth.org Git - apitrace/log
apitrace
10 years agotrace: Better fallback of glGetDebugMessageLog*
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.

10 years agotrace: Additional support for GL_KHR_debug, GL_ARB_debug_output, and GL_AMD_debug_output.
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>
10 years agoglretrace: Remove spurious line in previous commit.
José Fonseca [Thu, 26 Sep 2013 17:12:25 +0000 (18:12 +0100)]
glretrace: Remove spurious line in previous commit.

10 years agoglretrace: Always pass a format appropriate for the internalFormat when reading pixels.
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.

10 years agod3dretrace: Dump D3DFMT_D32F_LOCKABLE too.
José Fonseca [Mon, 23 Sep 2013 13:15:56 +0000 (14:15 +0100)]
d3dretrace: Dump D3DFMT_D32F_LOCKABLE too.

10 years agod3dretrace: Dump D3D9 depth stencil.
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.

10 years agobacktrace: Allow to build without libbacktrace.
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.

10 years agocmake: Link ${LIBBACKTRACE_LIBRARIES} once.
José Fonseca [Fri, 20 Sep 2013 14:37:17 +0000 (15:37 +0100)]
cmake: Link ${LIBBACKTRACE_LIBRARIES} once.

10 years agoos: Fix missing os::dump_backtrace symbol in Android builds.
José Fonseca [Fri, 20 Sep 2013 14:27:12 +0000 (15:27 +0100)]
os: Fix missing os::dump_backtrace symbol in Android builds.

10 years agocommon: dump backtrace on signals
Alexander Monakov [Fri, 12 Jul 2013 20:37:17 +0000 (00:37 +0400)]
common: dump backtrace on signals

10 years agocommon: carve out RawStackFrame::dump
Alexander Monakov [Fri, 12 Jul 2013 20:17:12 +0000 (00:17 +0400)]
common: carve out RawStackFrame::dump

10 years agocommon/backtrace: move namespace trace -> os
Alexander Monakov [Fri, 12 Jul 2013 19:13:47 +0000 (23:13 +0400)]
common/backtrace: move namespace trace -> os

10 years agocommon: rename trace_backtrace.* -> os_backtrace.*
Alexander Monakov [Fri, 12 Jul 2013 17:26:25 +0000 (21:26 +0400)]
common: rename trace_backtrace.* -> os_backtrace.*

10 years agothirdparty/libbacktrace: update from upstream
Alexander Monakov [Fri, 12 Jul 2013 21:05:39 +0000 (01:05 +0400)]
thirdparty/libbacktrace: update from upstream

10 years agod3dretrace: Eliminate buffer overflow converting D3DFMT_R5G6B5.
José Fonseca [Thu, 19 Sep 2013 17:19:22 +0000 (18:19 +0100)]
d3dretrace: Eliminate buffer overflow converting D3DFMT_R5G6B5.

10 years agoMerge branch 'hdr-dump'
José Fonseca [Tue, 17 Sep 2013 15:21:56 +0000 (16:21 +0100)]
Merge branch 'hdr-dump'

Support for high-dynamic-range surface dumps.

10 years agoRescale the image pixels using the full precision.
José Fonseca [Tue, 17 Sep 2013 14:22:50 +0000 (15:22 +0100)]
Rescale the image pixels using the full precision.

10 years agod3dretrace: Make --driver work correctly on DXGI1.1
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.

10 years agoretracediff: Dump mismtached float images to stdout.
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.

10 years agod3dretrace: Make --driver work correctly on DXGI1.1
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.

10 years agoimage: Non-standard PNM format variant for 4-float images.
José Fonseca [Mon, 16 Sep 2013 13:57:30 +0000 (14:57 +0100)]
image: Non-standard PNM format variant for 4-float images.

10 years agoretracediff: Support floating point images.
José Fonseca [Mon, 16 Sep 2013 13:21:39 +0000 (14:21 +0100)]
retracediff: Support floating point images.

Via numpy.

10 years agoimage: Yet another fix for the PFM dumping.
José Fonseca [Mon, 16 Sep 2013 13:18:05 +0000 (14:18 +0100)]
image: Yet another fix for the PFM dumping.

10 years agoimage: Write the scale factor / endianness line for PFM too.
José Fonseca [Mon, 16 Sep 2013 12:07:00 +0000 (13:07 +0100)]
image: Write the scale factor / endianness line for PFM too.

10 years agoimage: Fix PNM dumping for 2/4 channels.
José Fonseca [Mon, 16 Sep 2013 11:21:37 +0000 (12:21 +0100)]
image: Fix PNM dumping for 2/4 channels.

10 years agod3dretrace: Dump DXGI_FORMAT_R32G32B32A32_FLOAT images in floating point.
José Fonseca [Mon, 16 Sep 2013 11:20:40 +0000 (12:20 +0100)]
d3dretrace: Dump DXGI_FORMAT_R32G32B32A32_FLOAT images in floating point.

10 years agogui: make sure that the alpha channel is initialized
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.

10 years agogui: show the original pixel values in the surface viewer
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.

10 years agoglretrace: Dump depth buffers as floating point images.
José Fonseca [Thu, 12 Sep 2013 16:27:04 +0000 (17:27 +0100)]
glretrace: Dump depth buffers as floating point images.

10 years agoui: Handle float images in dumps.
José Fonseca [Thu, 12 Sep 2013 16:26:34 +0000 (17:26 +0100)]
ui: Handle float images in dumps.

10 years agoimage: Support reading PFM images.
José Fonseca [Thu, 12 Sep 2013 16:25:04 +0000 (17:25 +0100)]
image: Support reading PFM images.

10 years agoimage: Fix allocation of floating point images.
José Fonseca [Thu, 12 Sep 2013 16:21:37 +0000 (17:21 +0100)]
image: Fix allocation of floating point images.

10 years agod3dretrace: Fix MinGW build.
José Fonseca [Wed, 11 Sep 2013 17:45:43 +0000 (18:45 +0100)]
d3dretrace: Fix MinGW build.

10 years agod3dretrace: Fix MinGW build.
José Fonseca [Wed, 11 Sep 2013 17:45:43 +0000 (18:45 +0100)]
d3dretrace: Fix MinGW build.

10 years agogui: load image data via the Image class.
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.

10 years agoimage: Add floating point support.
José Fonseca [Wed, 11 Sep 2013 17:41:00 +0000 (18:41 +0100)]
image: Add floating point support.

WIP. Not throughly tested.

10 years agoimage: Allow to read PNG from a C++ stream.
José Fonseca [Wed, 11 Sep 2013 17:16:18 +0000 (18:16 +0100)]
image: Allow to read PNG from a C++ stream.

10 years agoimage: Move helpers to respective modules.
José Fonseca [Wed, 11 Sep 2013 17:14:22 +0000 (18:14 +0100)]
image: Move helpers to respective modules.

10 years agoimage: Fix reading of PNG images with different number of channels.
José Fonseca [Wed, 11 Sep 2013 17:10:50 +0000 (18:10 +0100)]
image: Fix reading of PNG images with different number of channels.

10 years agoBuild fixes for VS2013
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>
10 years agod3dretrace: Fix MSVC build.
José Fonseca [Wed, 11 Sep 2013 13:15:13 +0000 (14:15 +0100)]
d3dretrace: Fix MSVC build.

10 years agod3dretrace: Dump textures of all shader stages.
José Fonseca [Wed, 4 Sep 2013 09:49:32 +0000 (10:49 +0100)]
d3dretrace: Dump textures of all shader stages.

10 years agogui: Implement a new surface viewer
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.

10 years agoretracediff: Only diff state if specified by command line option.
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.

10 years agoCheck for ARB_sampler_objects before dumping its state.
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>
10 years agoTake GL_SAMPLER_BINDING in consideration.
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>
10 years agocli: Fix sed message.
José Fonseca [Thu, 25 Jul 2013 19:18:58 +0000 (20:18 +0100)]
cli: Fix sed message.

10 years agoUse EGLAttribArray all the time.
José Fonseca [Mon, 22 Jul 2013 18:26:01 +0000 (19:26 +0100)]
Use EGLAttribArray all the time.

10 years agoTrivial formatting / consistency fixes.
Andreas Hartmetz [Mon, 22 Jul 2013 17:57:50 +0000 (19:57 +0200)]
Trivial formatting / consistency fixes.

10 years agoUse the correct terminator EGL_NONE for eglChooseConfig attrib_list.
Andreas Hartmetz [Mon, 22 Jul 2013 17:56:40 +0000 (19:56 +0200)]
Use the correct terminator EGL_NONE for eglChooseConfig attrib_list.

10 years agoRe-enable rtti again.
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.

10 years agogltrace: Simplify AttribArray further.
José Fonseca [Sat, 20 Jul 2013 14:34:24 +0000 (15:34 +0100)]
gltrace: Simplify AttribArray further.

Make it look more like an Array.

10 years agocgltrace: Fix CGLChoosePixelFormat prototype.
José Fonseca [Sat, 20 Jul 2013 14:27:29 +0000 (15:27 +0100)]
cgltrace: Fix CGLChoosePixelFormat prototype.

And implify AttribList in the process.

10 years agoglretrace: Silence warning on wgl.
José Fonseca [Sat, 20 Jul 2013 14:06:01 +0000 (15:06 +0100)]
glretrace: Silence warning on wgl.

10 years agoBuild: Disable RTTI support at build-time to discourage the use of dynamic_cast, etc
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

10 years agoglimports: Check for iOS and skip OpenGL and CGL as appropriate.
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.

10 years agoglretrace: GLX and WGL support for ES2/EGL traces.
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.

10 years agowgltrace: Simplify pixel format attrib description.
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.

10 years agoMerge branch 'attrib_list'
José Fonseca [Sat, 20 Jul 2013 13:53:14 +0000 (14:53 +0100)]
Merge branch 'attrib_list'

Conflicts:
specs/glxapi.py

10 years agowgltrace: Prevent duplicate variable declaration.
José Fonseca [Sat, 20 Jul 2013 13:05:10 +0000 (14:05 +0100)]
wgltrace: Prevent duplicate variable declaration.

10 years agoqapitrace: Add option to replay in singlethreaded mode
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.

10 years agoglstate: Try to match the number of channels in internal format.
José Fonseca [Fri, 19 Jul 2013 23:20:06 +0000 (00:20 +0100)]
glstate: Try to match the number of channels in internal format.

10 years agoglstate: Better support for integer textures dumps.
José Fonseca [Fri, 19 Jul 2013 22:30:48 +0000 (23:30 +0100)]
glstate: Better support for integer textures dumps.

10 years agoRemove the last helper for the old incomplete attrib_list support.
Andreas Hartmetz [Fri, 12 Jul 2013 09:51:45 +0000 (11:51 +0200)]
Remove the last helper for the old incomplete attrib_list support.

10 years agoWGL: Support float-based attrib_list parameters.
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.

10 years agoAllow float-based attrib_lists as found in WGL.
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.

10 years agoRemove the now unused _AttribList_size.
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.

10 years agoGLX: More consistent naming of an AttribArray.
Andreas Hartmetz [Fri, 12 Jul 2013 09:49:39 +0000 (11:49 +0200)]
GLX: More consistent naming of an AttribArray.

10 years agoUpdate GLX attrib_list support from GLX 1.3 to 1.4.
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.

10 years agoWarn on unknown attrib_list keys.
Andreas Hartmetz [Fri, 12 Jul 2013 08:12:11 +0000 (10:12 +0200)]
Warn on unknown attrib_list keys.

10 years agoAggregate all info on debugging into a single place.
José Fonseca [Fri, 12 Jul 2013 06:48:22 +0000 (07:48 +0100)]
Aggregate all info on debugging into a single place.

10 years agoReplace dynamic_cast with virtual functions.
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.

10 years agoMore WGL support. It's ugly and the resulting code probably doesn't compile.
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.

10 years agoattrib_list support for WGL function wglCreateContextAttribsARB.
Andreas Hartmetz [Tue, 9 Jul 2013 20:56:31 +0000 (22:56 +0200)]
attrib_list support for WGL function wglCreateContextAttribsARB.

10 years agoattrib_list support for glXChooseVisual, the last GLX function.
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.

10 years agoUse the right attrib_list terminator and support the remaining functions.
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

10 years agoImprovements in AttribArray / attrib/list code generation.
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.

10 years agoProper AttribArray / attrib_list support for applicable CGL functions.
Andreas Hartmetz [Tue, 9 Jul 2013 20:40:44 +0000 (22:40 +0200)]
Proper AttribArray / attrib_list support for applicable CGL functions.

It's just CGLChoosePixelFormat here.

10 years agoAllow a custom terminator and support valueless keys better.
Andreas Hartmetz [Tue, 9 Jul 2013 20:38:29 +0000 (22:38 +0200)]
Allow a custom terminator and support valueless keys better.

10 years agocli/sed: Very basic stream editing of traces.
José Fonseca [Tue, 9 Jul 2013 15:35:14 +0000 (16:35 +0100)]
cli/sed: Very basic stream editing of traces.

Extremely limited, but have to start from somewhere.

10 years agocli/trim: Fix error message.
José Fonseca [Tue, 9 Jul 2013 15:28:47 +0000 (16:28 +0100)]
cli/trim: Fix error message.

10 years agod3dstate: Dump compressed D3D10/11 textures.
José Fonseca [Tue, 9 Jul 2013 12:27:00 +0000 (13:27 +0100)]
d3dstate: Dump compressed D3D10/11 textures.

10 years agodirectxtex: Fix assertion failures on MinGW.
José Fonseca [Tue, 9 Jul 2013 12:26:04 +0000 (13:26 +0100)]
directxtex: Fix assertion failures on MinGW.

10 years agod3dstate: Remove spurious statements.
José Fonseca [Tue, 9 Jul 2013 12:25:16 +0000 (13:25 +0100)]
d3dstate: Remove spurious statements.

10 years agowgltrace: Update wglapi.py from specs.
José Fonseca [Mon, 8 Jul 2013 18:40:50 +0000 (19:40 +0100)]
wgltrace: Update wglapi.py from specs.

Via the scripts in the scripts subdir.

Might not be perfect but better than nothing.

10 years agoglxtrace: Trace GLX_NV_present_video/GLX_NV_video_output/GLX_NV_video_capture calls...
José Fonseca [Mon, 8 Jul 2013 17:15:53 +0000 (18:15 +0100)]
glxtrace: Trace GLX_NV_present_video/GLX_NV_video_output/GLX_NV_video_capture calls minimally.

10 years agoSupport for Mac OS X 10.5 Leopard
Nigel Stewart [Fri, 5 Jul 2013 16:49:11 +0000 (11:49 -0500)]
Support for Mac OS X 10.5 Leopard

CGLShareGroupObj and IOSurfaceRef were added in 10.6 Snow Leopard SDK
Add workarounds to glimports.hpp to support building for pre-10.6.

10 years agogui: Allow to edit strings.
José Fonseca [Mon, 8 Jul 2013 14:40:36 +0000 (15:40 +0100)]
gui: Allow to edit strings.

Based upon the surrounding code.  There might be a better way to achieve
it, but this seems better than no support.

Issue #159.

10 years agoUse consistent cpp logic for including backtrace.h
José Fonseca [Mon, 8 Jul 2013 12:46:45 +0000 (13:46 +0100)]
Use consistent cpp logic for including backtrace.h

__linux__ -> __ELF__

10 years agoSkip apitrace from FirefoxOS if NDK is not present
Vasil Dimov [Mon, 1 Jul 2013 07:16:02 +0000 (10:16 +0300)]
Skip apitrace from FirefoxOS if NDK is not present

Skip apitrace build when compiling FirefoxOS if NDK is not present in
prebuilt/ndk/android-ndk-r7.

10 years agoResolve C4267 MS compiler warnings
Nigel Stewart [Wed, 3 Jul 2013 19:10:51 +0000 (14:10 -0500)]
Resolve C4267 MS compiler warnings

warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data

10 years agoDelete the file object if the trace file could not be loaded due to being an unsuppor...
Peter Lohrmann [Mon, 8 Jul 2013 12:20:31 +0000 (13:20 +0100)]
Delete the file object if the trace file could not be loaded due to being an unsupported (newer) version.

Fix small memory leak / assert if a trace file can't be loaded due to
being recorded with a newer version number than qapitrace. In this
scenario, there is no error message that gets shown in the UI, but the
title bar is updated with the trace file name, so the situation is very
confusing.

10 years agoProper AttribArray / attrib_list support for applicable GLX functions.
Andreas Hartmetz [Mon, 8 Jul 2013 10:36:11 +0000 (12:36 +0200)]
Proper AttribArray / attrib_list support for applicable GLX functions.

The functions are:

glXChooseFBConfig
glXCreateWindow
glXCreatePixmap
glXCreatePbuffer
glXChooseFBConfigSGIX
glXCreateGLXPbufferSGIX
glXBindTexImageEXT
glXBindVideoDeviceNV

10 years agoProper AttribArray / attrib_list support for applicable EGL functions.
Andreas Hartmetz [Mon, 8 Jul 2013 10:31:45 +0000 (12:31 +0200)]
Proper AttribArray / attrib_list support for applicable EGL functions.

The functions are:

eglChooseConfig
eglCreateWindowSurface
eglCreatePbufferSurface
eglCreatePixmapSurface
eglCreatePbufferFromClientBuffer
eglCreateContext
eglCreateImageKHR
eglCreateDRMImageMESA

10 years agoIntroduce AttribArray, a code generator for pseudo-type attrib_list.
Andreas Hartmetz [Sun, 7 Jul 2013 20:51:12 +0000 (22:51 +0200)]
Introduce AttribArray, a code generator for pseudo-type attrib_list.

Also use it for glXCreateConfigAttribsARB, which gives the expected
correct dumps in qapitrace and glretrace dump.
Nothing needs to change in dump code because it just reads whatever
types were written during tracing. Writing different types into
different array elements is allowed by the format, and it turns out
that even older versions of apitrace will correctly display dumps
created with this patch.

10 years agod3dretrace: Dump D3D11 textures too.
José Fonseca [Wed, 3 Jul 2013 15:02:03 +0000 (16:02 +0100)]
d3dretrace: Dump D3D11 textures too.

10 years agod3dretrace: Dump d3d10 PS resource shader views.
José Fonseca [Wed, 3 Jul 2013 14:48:30 +0000 (15:48 +0100)]
d3dretrace: Dump d3d10 PS resource shader views.

10 years agocommon: Add platform #ifdefs for non-cmake build convenience.
Nigel Stewart [Mon, 24 Jun 2013 20:40:44 +0000 (15:40 -0500)]
common: Add platform #ifdefs for non-cmake build convenience.

The cmake CMakeLists.txt file has logic for including or excluding certain
compilation units based on the platform: Windows, Linux or Mac OS X.
Other build systems are not as clever, it is convenient to also wrap
platform-specifics with #ifdef _WIN32 ... #endif to keep things simple on
the build side.

10 years agoResolve some MS compiler warnings (in picky mode)
Nigel Stewart [Tue, 2 Jul 2013 22:34:00 +0000 (23:34 +0100)]
Resolve some MS compiler warnings (in picky mode)

warning C4267: 'argument' : conversion from 'size_t' to 'DWORD', possible loss of data
warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data

10 years agoRetry creating D3D10/11 devices without debug flags.
José Fonseca [Fri, 28 Jun 2013 07:43:50 +0000 (08:43 +0100)]
Retry creating D3D10/11 devices without debug flags.