Bug 1401

Summary: Mesa 18.3.6 issues using EGL_PLATFORM_GBM_KHR and OpenGL Desktop Profile
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: embeddedAssignee: Sven Gothel <sgothel>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: ---    
Version: 2.4.0   
Hardware: embedded_all   
OS: linux   
Type: ANNOTATION SCM Refs:
Workaround: TRUE
Bug Depends on: 1156    
Bug Blocks:    

Description Sven Gothel 2019-11-27 21:53:11 CET
Mesa 18.3.6 has issues using EGL_PLATFORM_GBM_KHR and OpenGL Desktop Profile.
Using the very same, we get an unsatisfied linkage error using desktop GL, see:
         *
         * java.lang.UnsatisfiedLinkError: 'int jogamp.opengl.gl4.GL4bcImpl.dispatch_glGetError1(long)'
         * at jogamp.opengl.gl4.GL4bcImpl.dispatch_glGetError1(Native Method)
         * at jogamp.opengl.gl4.GL4bcImpl.glGetError(GL4bcImpl.java:648)
         * at jogamp.opengl.GLContextImpl.setGLFunctionAvailability(GLContextImpl.java:2186)
         * at jogamp.opengl.GLContextImpl.createContextARBVersions(GLContextImpl.java:1427)
         * at jogamp.opengl.GLContextImpl.createContextARBMapVersionsAvailable(GLContextImpl.java:1366)
         * at jogamp.opengl.GLContextImpl.mapGLVersions(GLContextImpl.java:1223)
         * at jogamp.opengl.GLContextImpl.createContextARB(GLContextImpl.java:968)
         * at jogamp.opengl.egl.EGLContext.createImpl(EGLContext.java:318)
         * at jogamp.opengl.GLContextImpl.makeCurrentWithinLock(GLContextImpl.java:769)
         * at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:652)
         * at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:590)
         * at jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.mapAvailableEGLESConfig(EGLDrawableFactory.java:858)
Comment 1 Sven Gothel 2019-11-27 21:58:17 CET
Type 'ANNOTATION' to document this issue being only referenced here, but caused by an external component -> Mesa.
Comment 2 Sven Gothel 2019-11-30 19:21:06 CET
We workaround this issue by simply not trying to probe the desktop profile in DRM_GBM mode and the EGLDrawableFactory.