Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change BCM VC IV detection to handle presence of vc4 DRI module #96

Merged
merged 2 commits into from
Jan 15, 2018

Conversation

gohai
Copy link
Contributor

@gohai gohai commented Feb 10, 2016

The recent Raspbian release comes with a vc4 kernel module that can be activated with a device tree overlay. In this case, we want to use the DRI & Mesa / Gallium3D driver instead of the BCM VC IV one, whose userspace library remains in /opt/vc.

The recent Raspbian release comes with a vc4 kernel module that can be activated with a device tree overlay. In this case, we want to use the DRI & Mesa / Gallium3D driver instead of the BCM VC IV one, whose userspace library remains in /opt/vc.
gohai added a commit to gohai/processing that referenced this pull request Feb 10, 2016
This is JOGL 2.3.2 with two fixes I wrote on top:
sgothel/jogl#96
sgothel/jogl#97

Makes the output window centered when using the default closed-source driver on the Raspberry Pi, and adds support for using the new OpenGL driver with the files of the old one still in place.
gohai added a commit to gohai/processing that referenced this pull request Feb 10, 2016
This is JOGL 2.3.2 with two fixes I wrote on top:
sgothel/jogl#96
sgothel/jogl#97

Makes the output window centered when using the default closed-source driver on the Raspberry Pi, and adds support for using the new OpenGL driver with the files of the old one still in place. Tested on the Raspbian and OS X.
@gohai
Copy link
Contributor Author

gohai commented Feb 16, 2016

@xranby What's your opinion on this?

Based on this comment by Eric, they will hopefully change the linker path depending on which driver is selected in raspi-config. But to figure out whether JOGL should be doing bcm_host_init or not, the above patch could work, I think.

@gohai
Copy link
Contributor Author

gohai commented Feb 16, 2016

I have a test version of this back-ported to 2.3.2 ready for testing: https://github.com/gohai/processing/commits/arm-jogl-fixes

I'd love to use something like this downstream, but waiting for upstream opinion first ;)

@xranby
Copy link
Contributor

xranby commented Feb 17, 2016

I have filed a JogAmp JOGL bugreport to track all issues related to the new version of Raspbian with dual OpenGL ES implementations.
https://jogamp.org/bugzilla/show_bug.cgi?id=1290

gohai added a commit to gohai/processing that referenced this pull request Mar 15, 2016
This is JOGL 2.3.2 with two fixes I wrote on top:
sgothel/jogl#96
sgothel/jogl#97

Makes the output window centered when using the default closed-source driver on the Raspberry Pi, and adds support for using the new OpenGL driver with the files of the old one still in place. Tested on the Raspbian and OS X.
gohai added a commit to gohai/processing that referenced this pull request Mar 15, 2016
This is JOGL 2.3.2 with two fixes I wrote on top:
sgothel/jogl#96
sgothel/jogl#97

Makes the output window centered when using the default closed-source driver on the Raspberry Pi, and adds support for using the new OpenGL driver with the files of the old one still in place. Tested on the Raspbian and OS X.
gohai added a commit to gohai/processing that referenced this pull request Mar 31, 2016
This is JOGL 2.3.2 with two fixes I wrote on top:
sgothel/jogl#96
sgothel/jogl#97

Makes the output window centered when using the default closed-source driver on the Raspberry Pi, and adds support for using the new OpenGL driver with the files of the old one still in place. Tested on the Raspbian and OS X.
gohai added a commit to gohai/processing that referenced this pull request May 9, 2016
This is JOGL 2.3.2 with two fixes I wrote on top:
sgothel/jogl#96
sgothel/jogl#97

Makes the output window centered when using the default closed-source driver on the Raspberry Pi, and adds support for using the new OpenGL driver with the files of the old one still in place. Tested on the Raspbian and OS X.
gohai added a commit to gohai/processing that referenced this pull request May 9, 2016
This is JOGL 2.3.2 with two fixes I wrote on top:
sgothel/jogl#96
sgothel/jogl#97

Makes the output window centered when using the default closed-source driver on the Raspberry Pi, and adds support for using the new OpenGL driver with the files of the old one still in place. Tested on the Raspbian and OS X.
When the VC4 DRM driver isn't loaded, we want to load the VC IV GLES2 driver, which is - unfortunately - only available as libGLESv2.so.
@sgothel sgothel merged commit bd80d24 into sgothel:master Jan 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants