[PATCH] Fix glFenceSync() retracing
jose.r.fonseca at gmail.com
Mon Jan 9 11:12:16 PST 2012
I see the problem, but unfortunately this change will break retracing
glFlushMappedBufferRange with a sub-range, and user memory pointers as
recorded by the virtual-address-regions branch (which tries to
reconstruct data in user arrays via mallocs and memcpys).
Glsync is a peculiar type, given it is both an opaque, but also an handle.
The long term solution is to make the trace format more expressive,
and to disambiguate pointers to opaque objects, from pointers to
opaque blobs (which can be referred partially, such as
But I'll think a bit more to see if there's any other easy workaround
we could do in short term.
On Mon, Jan 9, 2012 at 6:09 AM, Ryan C. Gordon <icculus at icculus.org> wrote:
> Calling glFenceSync(), part of GL_ARB_sync, triggers an assertion in
> glretrace, because it thinks the returned pointer should be part of a
> previously-known address range (it isn't; it's more of a handle than a
> Patch attached. This fixed the problem here, but I'm not sure of the full
> ramifications of the change.
> apitrace mailing list
> apitrace at lists.freedesktop.org
More information about the apitrace