use with mesa
José Fonseca
jose.r.fonseca at gmail.com
Thu Nov 7 19:48:35 CET 2013
On Thu, Nov 7, 2013 at 6:22 PM, Burlen Loring <bloring at lbl.gov> wrote:
> On 11/07/2013 10:02 AM, José Fonseca wrote:
>
>
>
>
> On Thu, Nov 7, 2013 at 5:42 PM, Burlen Loring <bloring at lbl.gov> wrote:
>
>> On 11/07/2013 09:31 AM, Alexander Monakov wrote:
>>
>>>
>>> On Thu, 7 Nov 2013, Burlen Loring wrote:
>>>
>>> Hi,
>>>>
>>>> I tried to use apitrace with a debug build of mesa today and it segv'd.
>>>> However it works fine when used with the system installed ATI drivers.
>>>> With
>>>> the mesa build I tried setting LD_PRELOAD and LD_LIBRARY_PATH to no
>>>> avail. Any
>>>> ideas what am I doing wrong?
>>>>
>>> No. Many people use apitrace with Mesa, including debug builds. Try
>>> showing
>>> your exact command line and backtrace from gdb. Details on how you
>>> configured
>>> Mesa might also help.
>>>
>>> Alexander
>>>
>> Alexandr, thanks for trying to help, here are details you asked about.
>>
>> my mesa conig:
>> ./configure CXXFLAGS="-O2 -g" CFLAGS="-O2 -g" --disable-xvmc
>> --disable-glx --disable-dri --with-dri-drivers= --with-gallium-drivers=
>> --enable-texture-float --disable-shared-glapi --disable-egl
>> --with-egl-platforms= --enable-osmesa --with-osmesa-bits=32
>> --enable-gallium-llvm=no --prefix=/work/apps/mesa/devel/classic
>>
>> how I ran apitrace
>> LD_PRELOAD=/work/apps/mesa/devel/classic/lib/libOSMesa32.so
>> /work/apps/apitrace/devel/bin/apitrace trace --output=mesa-line-trace
>> /work/VTK/vtk-mesa-dev/bin/vtkChartsCoreCxxTests "TestPieChart" "-D"
>> "/work/VTK/vtk-mesa-dev/ExternalData/Testing" "-T"
>> "/work/VTK/vtk-mesa-dev/Testing/Temporary" "-V"
>> "/work/VTK/vtk-mesa-dev/ExternalData/Charts/Core/Testing/Data/Baseline/TestPieChart.png"
>
>
> I strongly suspect that the problem is the LD_PRELOAD will interfere
> with a apitrace, as apitrace too, uses LD_PRELOAD to do its thing. I think
> think this will ever work.
>
> If you want to trace Mesa, I suggest you build the pure XLIB libGL.so sw
> rasterizer, and then use LD_LIBRARY_PATH=... . This works -- I use it very
> often.
>
> Jose
>
>
> Hi Jose, Thanks for trying to help. With/without LD_PRELOAD the result is
> the same. I'm working on a parallel rendering application for use on
> systems that do not run X11, and thus I don't built mesa with any X11
> features. Is X11 a requirement for apitrace?
>
On Linux X11 is a requirement when tracing with `apitrace trace --api=gl`.
EGL is a requirement when tracing with --api=egl. We don't support
anything else on unices -- let's say that apitrace is not "window API
agnostic" -- it needs to know windows specfic things like GL contexts etc.
Jose
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/apitrace/attachments/20131107/5b68f4bc/attachment.html>
More information about the apitrace
mailing list