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

Merged
merged 2 commits into from Jan 15, 2018

Conversation

Projects
None yet
3 participants
@gohai
Contributor

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.

Change BCM VC IV detection to handle presence of vc4 DRI module
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

Add two Raspberry Pi related fixes to JOGL
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

Add two Raspberry Pi related fixes to JOGL
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

This comment has been minimized.

Show comment
Hide comment
@gohai

gohai Feb 16, 2016

Contributor

@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.

Contributor

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

This comment has been minimized.

Show comment
Hide comment
@gohai

gohai Feb 16, 2016

Contributor

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 ;)

Contributor

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

This comment has been minimized.

Show comment
Hide comment
@xranby

xranby Feb 17, 2016

Contributor

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

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

Add two Raspberry Pi related fixes to JOGL
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

Add two Raspberry Pi related fixes to JOGL
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

Add two Raspberry Pi related fixes to JOGL
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 gohai referenced this pull request in processing/processing Mar 31, 2016

Merged

Add two Raspberry Pi related fixes to JOGL #4379

gohai added a commit to gohai/processing that referenced this pull request May 9, 2016

Add two Raspberry Pi related fixes to JOGL
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

Add two Raspberry Pi related fixes to JOGL
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.
Change library search order for Broadcom VC IV graphics
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