Do Linux OpenGL apps work?


#1

Running the latest stable [1], glxgears via the linux-c7-glx-utils package errors out:

$ /compat/linux/usr/bin/glxgears
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  153 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  35
  Current serial number in output stream:  37

All the various Linux KLD’s are loaded and pseudo-file systems mounted. The Linux telegram application (linux-telegram-desktop) works correctly. The native glxgears also works correctly. So, I believe the base X system and Linuxulator are OK.

Does this work for anyone else?

[1]

$ about

===================
General information
===================

boot environment now (N) … 12.0-CURRENT-up-20180330_072946 NR 2018-03-30
       after restart (R) … 12.0-CURRENT-up-20180330_072946 NR 2018-03-30
boot loader …………………………………… BSD
            type ……………………… EFI
CPU ………………………………………………………… Intel(R) Xeon(R) CPU E5-1620 v3 @ 3.50GHz
    number of cores ……………… 8
host ……………………………………………………… fluffy.tuffli.net
memory ………………………………………………… 16384 MB available, 11708 MB free
OS git branch ……………………………………………………………………………………… trueos-stable-18.03
OS git revision ………………………………………………………………………………… fa797a5a3
OS kernel build time ………………………………………………………… Mon 2018 Mar 26 00:24:47 UTC
OS kernel identity …………………………………………… (uname -i) GENERIC
OS platform (architecture) ……………………… (uname -m) amd64
OS release level ………………………………………………… (uname -r) 12.0-CURRENT
OS version and patch level …… (freebsd-version) 12.0-CURRENT
TrueOS package set ………………… STABLE
TrueOS version …………………………… TrueOS-Desktop-201803131015
uptime ………………………………………………… 4:02
user  …………………………………………………… ctuffli

More (TrueOS Desktop):

    desktop environment …… Lumina
    sound card driver ………… pcm0: <NVIDIA GT21x (HDMI/DP 8ch)> (play) default
    wireless driver ……………… 
    X11 drivers ………………………… nvidia_drv.so

#2

It’s working here, though not optimized (December STABLE, Intel):

/compat/linux/usr/bin/glxgears
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be broken.
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be broken.
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be broken.
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be broken.
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be broken.
pci id for fd 4: 8086:5916, driver (null)
[intel_init_bufmgr:1094] Error initializing buffer manager.
libGL error: failed to create dri screen
libGL error: failed to load driver: i965
6540 frames in 5.0 seconds = 1307.984 FPS
6755 frames in 5.0 seconds = 1350.905 FPS

#3

@Sergio, thanks for the feedback. It looks like this is something specific to my setup.


#4