use with mesa

Burlen Loring bloring at lbl.gov
Fri Nov 8 09:15:41 PST 2013


On 11/08/2013 02:58 AM, Alexander Monakov wrote:
>>> Hm, I think tracing should work without a context, just the result may not
>>> be
>>> replayable?
>>>
>>> What happens if you do
>>>
>>>     TRACE_LIBGL=/work/apps/mesa/devel/classic/lib/libOSMesa32.so apitrace
>>>     trace
>>>     ...
>> no more segv! but looks like my app doesn't run, and trace file is empty.
>>
>> apitrace: loaded
>> apitrace: tracing to mesa-line-trace
>> error: unavailable function glXGetProcAddressARB
> OK, this can happen when apitrace tries to look up a function outside of Linux
> OpenGL ABI.  Not sure if you need it, but the following hack should work
> around it:
>
> diff --git a/dispatch/glproc_gl.cpp b/dispatch/glproc_gl.cpp
> index 2516dab..3d4e691 100644
> --- a/dispatch/glproc_gl.cpp
> +++ b/dispatch/glproc_gl.cpp
> @@ -272,7 +272,7 @@ _getPublicProcAddress(const char *procName)
>   void *
>   _getPrivateProcAddress(const char *procName)
>   {
> -    return (void *)_glXGetProcAddressARB((const GLubyte *)procName);
> +    return _libgl_sym(procName);
>   }
that works, thanks!




More information about the apitrace mailing list