Detect "Intel Mesa 9.2.1" to avoid bug #873

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Detect "Intel Mesa 9.2.1" to avoid bug #873

Plonk42
Hi All,

I'm the developer of an application that use JOGL for 3D rendering.
I have implemented a colour picking mechanism, using a pbuffer offscreen drawable, and a shared context with the main GLCanvas I'm using.

Context sharing breaks instantaneously on Linux + Intel Haswell, saying "intel_do_flush_locked: No such file or directory".
This is already known as bug #873: https://jogamp.org/bugzilla/show_bug.cgi?id=873 

If I understand correct, there is nothing I can do but waiting for Intel to fix this bug...

If that is correct, how can I detect Mesa renderer before trying to share context, giving me a chance to properly warn the user instead of crashing?
What other alternatives do I have to implement this colour picking in the most portable way?

Configuration details, if needed:
- Linux 3.13.0-44-generic, amd64
- Renderer Mesa DRI Intel(R) Haswell Mobile  / Mesa-Version 10.1.3 (Mesa 10.1.3)
- JOGL 2.1.4

Thanks a lot!
Reply | Threaded
Open this post in threaded view
|

Re: Detect "Intel Mesa 9.2.1" to avoid bug #873

gouessej
Administrator
Hi

You can use GL_VENDOR, GL_RENDERER and GL_VERSION:
https://github.com/gouessej/Ardor3D/blob/master/ardor3d-jogl/src/main/java/com/ardor3d/renderer/jogl/JoglContextCapabilities.java#L236

Please use the very latest version of JOGL (currently 2.2.4). If something goes wrong, we won't be able to help you if you use an obsolete version.

Plonk42 wrote
What other alternatives do I have to implement this colour picking in the most portable way?
We talked a lot about that here:
http://forum.jogamp.org/picking-td4031052.html
You can implement picking in a geometry shader. Personally, I prefer software picking. Color picking doesn't work at all on laptops that emulates a part of their palettes.
Julien Gouesse | Personal blog | Website