Re: JOGL support for VideoCore 6 with Raspberry PI 4
Posted by
Xerxes Rånby on
Sep 10, 2019; 3:24pm
URL: https://forum.jogamp.org/JOGL-support-for-VideoCore-6-with-Raspberry-PI-4-tp4040046p4040064.html
Xerxes Rånby wrote
katzii wrote
Thank you for your answer, Sven. I will just go for the newer PI and try this out. If this doesn't work, I will do my best to fix this, since I really enjoy this particular use case :) So if patches are generally accepted, I would love to put the work into this.
Cheers
* VideoCore 6 on the Raspberry Pi 4 is only supported by the Mesa 3D drivers.
If you try to force use of the Broadcom driver then the Broadcom driver will issue an error statement that raspberry pi 4 is not supported and quit your application.
* Running OpenGL or OpenGL ES initialized using EGL without X11 on Raspberry Pi 4 is possible using the Linux Kernel Modesetting driver (KMS) API in combination with the Mesa Generic Buffer Management (GBM) API.
* KMS Cube is Mesa 3D example application that initialized EGL using GBM and KMS
https://gitlab.freedesktop.org/mesa/kmscube/ This application work directly from console if you compile it and run it on a Raspberry Pi 4.
* JOGL needs to be extended in order to support initialization of EGL using GBM/KMS. However some attempts have already been made to implement support for GBM/KMS for other linux systems:
https://jogamp.org/bugzilla/show_bug.cgi?id=1156 - Newt EGL/GBM (KMS) driver
*
https://github.com/Zubnix/jogl/commits/master <- proof of concept implementation of NEWT GBM/KMS driver, try this
Cheers
Xerxes
Back in 2018, i tried to make a GBM/KMS implementation: my failed attempt is now archived here:
https://github.com/xranby/jogl/commits/KMS