summaryrefslogtreecommitdiff
path: root/retrace
AgeCommit message (Collapse)AuthorFilesLines
2016-01-28glretrace: Implement wglUseFontBitmaps.Jose Fonseca4-0/+4981
Use static font bitmaps. We can't match exactly the bitmap used when recording because external information (such as the font name, size, etc.) was not recorded. And by using a static font bitmaps we can guarantee similar rendering everywhere.
2016-01-27glstate: Use DSA GL_TEXTURE_TARGET when available.Jose Fonseca1-35/+42
2016-01-23common: Introduce DUMP_FLAG_NO_MULTILINE.Jose Fonseca1-10/+5
To avoid the need of stripping newlines.
2016-01-23glretrace: Include call params in the marker.Jose Fonseca3-7/+25
2016-01-23glretrace: Use a ostringstream instead of asprintf.Jose Fonseca1-13/+14
As the latter is not portable.
2016-01-22glretrace: Use an unique ID for apitrace call no markers.Jose Fonseca1-2/+6
So that apitrace (and maybe the drivers) can distinguish these messages from others.
2016-01-22glretrace: Add an option to insert markers.Jose Fonseca4-2/+17
2016-01-22glretrace: Invoke glDebugMessageInsertKHR for ES contexts.Jose Fonseca1-5/+11
2016-01-22glretrace: Don't insert markers inside glBegin/End.Jose Fonseca1-0/+1
KHR_debug spec is not clear, but at leat Mesa doesn't seem to like it.
2016-01-22glretrace: Move call no markers away from dumper interface.Jose Fonseca5-23/+29
Dumper is only for dumping state to JSON.
2016-01-22glretrace: use KHR_debug to emit call no's.Rob Clark4-0/+26
If the extension is present, use it to log call numbers for draw commands, using GL_DEBUG_TYPE_MARKER. If supported by the driver, this embeds the draw call no's in the commandstream. Signed-off-by: Rob Clark <robdclark@gmail.com>
2016-01-18retrace: Metrics abstraction: add missing copyrights.Alexander Trukhin6-0/+150
[ci skip]
2016-01-12Revert "glretrace: avoid glXSwapBuffers failures because of "bad" windows".Jose Fonseca1-13/+2
This reverts commit 485846b2a40d8ac7d6c1c5f8af6d15b0c10af19d. It seems that with commit c51694c012985318763d3faf46b1077b985a637b this is no longer necessary.
2016-01-12glretrace: Use glXCreateWindow drawable.Jose Fonseca1-10/+22
This avoids the issues described in https://bugs.freedesktop.org/show_bug.cgi?id=54080 Thanks to Sinclair Yeh for diagnosing the issue and verifying this fix.
2016-01-11Merge branch 'metric_abstraction'Jose Fonseca17-16/+2985
2016-01-11retrace: Fix Android build.Jose Fonseca1-1/+9
2015-12-23glws: Fix Cocoa resizing.Jose Fonseca1-3/+2
Previous commit broke the initial window resizing somehow.
2015-12-23glws: Make OS X windows more responsive.Jose Fonseca1-1/+7
2015-12-22d3dretrace: Create a single window per HWND.Jose Fonseca3-1/+31
2015-12-22gltrace: Fix glBitmap / glDrawPixels(GL_BITMAP) blob size calculation.Jose Fonseca1-3/+1
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-12-22glretrace: Fix glCopyImageSubData for textures.Jose Fonseca1-0/+5
A temporary workaround for https://github.com/apitrace/apitrace/issues/404 suggested by Ilia Mirkin. Tested with trace from https://bugs.freedesktop.org/show_bug.cgi?id=92850#c51
2015-12-20glretrace: Handle make current with null drawable.Jose Fonseca2-7/+13
Fixes https://github.com/apitrace/apitrace/issues/402
2015-12-03glws: Add a link about NSThread.Jose Fonseca1-0/+3
2015-12-03glws: initialize Drawable::mipmapLevel, cubeFace membersBrian Paul1-1/+3
Fixes some valgrind warnings about uninitialized values when the trace uses wglBindTexImageARB() but the mipmap level or cube face were not explicitly set.
2015-11-16glretrace: Remove duplicate glUnmapNamedBuffer case.Jose Fonseca1-2/+0
2015-11-10glws: Close Cocoa windows.Jose Fonseca1-1/+2
Don't just release them.
2015-11-07glws: Fix GLX PBuffer destruction.Jose Fonseca1-1/+5
2015-11-04glstate: Dump images (glBindImage) to displayed surfaces.Martin Schulze3-0/+53
2015-11-02retrace: Remove dead code in encodeBase64String.Jose Fonseca1-7/+3
size % 3 can never be larger than 2. Thanks to Coverity and Gcov for independently spotting it.
2015-10-31glretrace: Fix wglCreatePbufferARB without current context.Brian Paul3-1/+11
2015-10-30d3dretrace: Handle DDCREATE_* flags,Jose Fonseca1-0/+13
2015-10-29Metrics abstraction: correct allocator template arguments.Alexander Trukhin2-2/+2
Previous version does not work with libc++. A bit strange that it worked well with libstdc++.
2015-10-29glstate: Fix snapshots with PBuffers.Jose Fonseca1-7/+6
2015-10-29glws: Fix wglCreatePbufferARB when there's no current context.Jose Fonseca1-49/+55
2015-10-29Merge branch 'WGL_ARB_render_texture'Jose Fonseca11-77/+777
2015-10-29glstate: Fix deletion of array.Jose Fonseca1-1/+1
2015-10-29glretrace: Limit the maximum number of glGetError warnings.Jose Fonseca1-43/+54
Just like we do for KHR_debug messages.
2015-10-28glws: revert "add Context::GetCurrent() and Drawable::GetCurrent()".Jose Fonseca3-28/+5
No need to burden the glws interface with current context/drawable getters. The glws internals don't need the abstraction, and the users of glws should keep track of the current context themselves (as they already do.)
2015-10-28glws: Update Android support for interface changes.Jose Fonseca1-4/+26
2015-10-28glws: Update Waffle support for interface changes.Jose Fonseca1-4/+27
2015-10-28glws: Update Cocoa support for interface changes.Jose Fonseca1-4/+26
2015-10-28glretrace: add API dispatch for WGL_ARB_render_textureBrian Paul3-2/+120
With this, we now support WGL_ARB_render_texture.
2015-10-28glretrace: parse WGL_ARB_render_texture pbuffer attributesBrian Paul1-0/+69
Parse the attributes and pass them to the glws::createPBuffer() function.
2015-10-28glws: add no-op EGL functions for WGL_ARB_render_texture functionsBrian Paul1-0/+21
2015-10-28glws: implement WGL_ARB_render_texture functions on GLXBrian Paul1-0/+128
There's no GLX equivalent to WGL_ARB_render_texture so we do an emulation using glCopyTex[Sub]Image().
2015-10-28glws: add new functions for WGL_ARB_render_textureBrian Paul2-1/+66
And for WGL ws, call the native driver functions
2015-10-28glws: update WGL pbuffer code for WGL_ARB_render_textureBrian Paul1-1/+35
When creating a pbuffer, include the WGL_BIND_TO_TEXTURE_RGBA_ARB, WGL_TEXTURE_FORMAT_ARB, WGL_TEXTURE_TARGET_ARB and WGL_MIPMAP_TEXTURE_ARB attributes.
2015-10-28glws: begin plumbing extra pbuffer info needed for WGL_ARB_render_textureBrian Paul8-22/+49
When we create a pbuffer we'll need to handle some additional informatation for WGL_ARB_render_texture, such as texture format, texture target, etc.
2015-10-28glws: add WGL PBuffer supportBrian Paul1-43/+153
2015-10-28glws: add GLX PBuffer supportBrian Paul1-4/+63