[Mesa-users] osmesa swrast windows/linux
Andreas Fänger
a.faenger at e-sign.com
Mon Feb 29 16:31:37 UTC 2016
Hi,
We are using Mesa3D for server based rendering of single images on windows
and linux. As this is a headless environment osmesa is being used. This has
been working great for many years.
We are now in the process of updating Mesa3D from the 10.5 series and now
there seem to be issues with osmesa/swrast. We used to compile osmesa with
the following lines (both on windows and linux):
scons build=release openmp=true osmesa
This gave us a single .so/.dll that contained all necessary OSMesa and GL
symbols and we could just link it in order to use it.
However, starting with Mesa 11.6.0 this doesnt work anymore.
On linux the osmesa.so created does not contain any OSMesa and GL symbols
(e.g. neither OSMesaCreateContext nor glLoadIdentity). By the way the
osmesa.so is now put in build/linux-x86_64/gallium/targets/osmesa instead
of build/linux-x86_64/mesa/drivers/osmesa as in previous versions.
On windows, the new osmesa.dll only contains the OSMesa specific symbols but
non of the GL symbols:
C:\>dumpbin /EXPORTS
build\windows-x86-debug\gallium\targets\osmesa\osmesa.dll
.
1 0 001703B0 OSMesaColorClamp = _OSMesaColorClamp at 4
2 1 0016FBC0 OSMesaCreateContext = _OSMesaCreateContext at 8
3 2 0016FBE0 OSMesaCreateContextExt =
_OSMesaCreateContextExt at 20
4 3 0016FD80 OSMesaDestroyContext = _OSMesaDestroyContext at 4
5 4 00170280 OSMesaGetColorBuffer = _OSMesaGetColorBuffer at 20
6 5 0016FF80 OSMesaGetCurrentContext =
_OSMesaGetCurrentContext at 0
7 6 001701A0 OSMesaGetDepthBuffer = _OSMesaGetDepthBuffer at 20
8 7 00170030 OSMesaGetIntegerv = _OSMesaGetIntegerv at 8
9 8 00170300 OSMesaGetProcAddress = _OSMesaGetProcAddress at 4
10 9 0016FDD0 OSMesaMakeCurrent = _OSMesaMakeCurrent at 20
11 A 0016FFC0 OSMesaPixelStore = _OSMesaPixelStore at 8
12 B 001703E0 OSMesaPostprocess = _OSMesaPostprocess at 12
So my question is: using the latest mesa versions, how can I compile osmesa
with swrast on linux and windows and get libraries as in pre 10.6 versions
(last one working is 10.5.9)?
Regards,
Andreas Fänger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-users/attachments/20160229/29a7da48/attachment.html>
More information about the mesa-users
mailing list