aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgohai <[email protected]>2016-02-10 15:52:13 +0100
committergohai <[email protected]>2016-02-10 18:56:21 +0100
commit93094928489adb0b12889f7b35c75a28303e18e8 (patch)
treed3eec66fe7e3aa746aec535fe13d48a440558ee2
parent45cc13c4d68fb3137b741cbc39ea653c15db2f66 (diff)
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.
-rw-r--r--src/nativewindow/classes/com/jogamp/nativewindow/NativeWindowFactory.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nativewindow/classes/com/jogamp/nativewindow/NativeWindowFactory.java b/src/nativewindow/classes/com/jogamp/nativewindow/NativeWindowFactory.java
index 5da7974b0..cf3819b85 100644
--- a/src/nativewindow/classes/com/jogamp/nativewindow/NativeWindowFactory.java
+++ b/src/nativewindow/classes/com/jogamp/nativewindow/NativeWindowFactory.java
@@ -140,9 +140,11 @@ public abstract class NativeWindowFactory {
return AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
private final File vcliblocation = new File(
"/opt/vc/lib/libbcm_host.so");
+ private final File vc4modlocation = new File(
+ "/sys/module/vc4");
@Override
public Boolean run() {
- if ( vcliblocation.isFile() ) {
+ if ( vcliblocation.isFile() && !vc4modlocation.isDirectory() ) {
return Boolean.TRUE;
}
return Boolean.FALSE;