summaryrefslogtreecommitdiff
path: root/helpers
AgeCommit message (Collapse)AuthorFilesLines
2016-09-21d3dretrace: Add support for half float formatsPatrick Rudolph1-0/+133
Use MESA half-float to float conversion function. Mesa uses MIT compatibel license which should fit apitrace license. Copyright header remains untouched. Signed-off-by: Patrick Rudolph <siro@das-labor.org>
2016-09-02d3d9trace: Use smallest blobs for ATI1N/ATI2N formats.Jose Fonseca2-8/+22
Fixes #478.
2016-05-10gltrace: Only check primitive restart index if supported.Jose Fonseca2-0/+6
2016-05-10gltrace: Move vertex array count helpers to a different module.Jose Fonseca1-174/+0
2016-05-10gltrace: Don't track GLES buffer contents.Jose Fonseca1-6/+1
Basically revert d493737765bed0fcbba908024d2314778c26b5c9.
2016-04-10glstate: Tweak features.Jose Fonseca1-11/+14
Not all similar extensions are alike.
2016-04-10glstate: More accurately check for PBO / 3D tex support before using it.Jose Fonseca2-0/+6
This allows to use glretrace with Microsoft GDI OpenGL 1.1 implementation, just for sanity testing purposes.
2016-04-10glstate: More accurately check for READ_BUFFER/ReadBuffer support.Jose Fonseca2-0/+6
2016-04-10glstate: Check draw (and read) FBOs are advertised before using.Jose Fonseca2-6/+18
2016-04-05gltrace,glretrace: Handle GL_ARB_query_buffer_object correctly.Jose Fonseca2-1/+10
More specifically, treat pointers as offsets when GL_QUERY_BUFFER is bound to a buffer. Code changes follow closely the similar logic used for PBOs. https://github.com/apitrace/apitrace/issues/442
2016-04-04gltrace: Use glfeature to decide when PBOs are supported.Jose Fonseca2-0/+11
2016-04-04helpers: Move GL extension cache object to glfeatures.Jose Fonseca2-1/+67
So it can be used in the wrappers too.
2016-04-04helpers: rename glprofile to glfeatures.Jose Fonseca3-8/+6
This module will have more than just description of OpenGL profiles, but actual features.
2016-02-19d3d9trace,d3d9retrace: Handle D3D9Ex system memory textures.Jose Fonseca1-3/+14
2016-01-26specs: Add missing GL_EXT_* extensions.Jose Fonseca1-0/+8
2016-01-04gltrace: Honour range in glDrawRangeElement*.Jose Fonseca1-2/+11
Based from Roland Scheidegger's patch on https://bugs.freedesktop.org/show_bug.cgi?id=80419#c94 Fixes https://github.com/apitrace/apitrace/issues/407#issuecomment-167866502
2016-01-04gltrace: Remove spurious semin-colon.Jose Fonseca1-1/+1
2015-12-22gltrace: Fix glBitmap / glDrawPixels(GL_BITMAP) blob size calculation.Jose Fonseca1-39/+26
A superficial reading of the OpenGL specification gives the idea that GL_UNPACK_ALIGMENT should be ignored in some cases, but if one takes in consideration all the different constraints, it actually follows that the row stride must be aligned to unpack alignment, one way or the other. This is particularly true for GL_BITMAPs, whose size was being underestimated if GL_UNPACK_ALIGMENT != 1. This also matches what Mesa does.
2015-10-30ddrawtrace: Fix calculation of FVF texture coord size.Jose Fonseca1-1/+14
2015-08-13glretrace: Support GL_ARB_gpu_shader_int64 uniforms.Jose Fonseca1-0/+30
2015-08-12specs: Support D3D11.3.Jose Fonseca1-0/+32
2015-07-24helpers: Improve com_ptr.Jose Fonseca1-18/+43
2015-07-21dxgiretrace: Bring back the D3D11 pitch mismatch warnings.Jose Fonseca1-0/+24
2015-07-16dxgitrace: Recognize newer DXGI formats.Jose Fonseca1-4/+39
Particularly video formats.
2015-07-13d3dtrace: Fix size computation for full DXTC locks.Jose Fonseca3-11/+8
2015-07-08d3dtrace: Ensure we fallback to height*pitch for unknown/unexpected formats.Jose Fonseca2-0/+4
2015-07-08d3dtrace: Add a couple of missing formats to _getFormatSize.Jose Fonseca2-0/+4
2015-07-06d3d9trace: Take bits per pixel in consideration.Jose Fonseca3-61/+267
Otherwise partial locks near the end of the texture might cause buffer overflows when reading/writing. But take extra care to not cause false warnings for old traces. Fixes #361.
2015-06-25glretrace: Fix occlusion query support detection.Jose Fonseca1-0/+5
GL_ARB_occlusion_query was made part of core OpenGL 1.5. Furthermore we don't use the *ARB entry-points, so we really rely on the core support. Futhermore, on Mac OS, core 3.2+ profiles do not list core extensions, so we were wrongly assuming it was missing. Fixes #358.
2015-05-29egltrace: Warn instead of assert on GL API mismatch.Jose Fonseca2-1/+15
Some OpenGL ES implementions end up being just a thin veil on top of desktop OpenGL. Fixes #341.
2015-05-27specs: Update NV_path_rendering functions.Kimmo Kinnunen1-0/+7
Update NV_path_rendering functions from newer GL specifications. The functions are used in Skia open source graphics library now.
2015-05-20common,cli,wrappers,retrace,gui: Use #pragma once.Jose Fonseca12-37/+12
Smaller footprint, and simplifies refactoring.
2015-03-26gltrace: Fix leak due to shadowed variable.José Fonseca1-1/+1
2015-03-13glretrace: Cleanup Profile::matches.Jose Fonseca2-25/+44
2015-03-13glretrace: Be more forgiving with forward-compatible contexts on MacOSX.Jose Fonseca1-1/+7
2015-03-13glretrace: Set FORWARD_COMPATIBLE_BIT as per trace.Jose Fonseca2-13/+37
Not thoroughly tested across all platforms. But hopefully close enough.
2015-02-05glhelpers: fix glprofile.cpp compilation on VS2012unknown1-0/+1
std::string was forward declarated only, so I have include <string>
2015-01-23glhelpers,glws: Move extension management to helper module.José Fonseca2-3/+65
2015-01-15ddrawtrace: Capture IDirect3DDevice7::DrawPrimitive vertices.José Fonseca1-0/+107
2015-01-08gltrace: Fix PBO unpacking on core contexts.José Fonseca1-2/+2
gltrace::PROFILE_COMPAT was a misnomer -- it actually meant desktop profile. So b0c597293060329afc1ee10d4062d30a2b272f78 broke PBO for core contexts.
2015-01-06cmake: Ensure glproc.hpp is generated before attempting to compile glhelpers.José Fonseca1-0/+1
2015-01-06helpers: Fix matching for OpenGL 3.1 contexts.José Fonseca1-1/+13
It's OK to return 3.2 core when 3.1 is requested.
2015-01-05gltrace: Use glprofile::Profile when tracing.José Fonseca1-0/+10
Less duplication, and hopefully more future proof.
2015-01-05glretrace: Ensure we get a matching context.José Fonseca1-0/+7
2015-01-05glretrace: Move the logic to determine the current context profile into ↵José Fonseca2-2/+178
glprofile module. As it will be useful elsewhere.
2015-01-05helpers: Move GL profile into a separate helper module.José Fonseca3-0/+145
2014-12-12gltrace: Handle primitive restart with user arrays.José Fonseca1-6/+28
2014-11-09gltrace: Handle packed vertex attribute formats properly.José Fonseca1-7/+15
2014-10-02dxgitrace: Search for more recent versions d3dcompiler_xx.dll.José Fonseca1-1/+3
And warn if none is found.
2014-09-04dxgitrace: Fix UpdateSubresource's blob size calculation for non-null pDstBox.José Fonseca2-10/+26
The box dimensions where being incorrectly minified.