WAFFLE_GBM_DEVICE no longer works?
This commit added support for WAFFLE_GBM_DEVICE
env var: cef67496
However with waffle-1.6.1 (in gentoo), I get:
$ WAFFLE_GBM_DEVICE=/dev/dri/renderD129 gdb --args wflinfo -p gbm -a gl
...
Thread 1 "wflinfo" received signal SIGSEGV, Segmentation fault.
0x00007ffff7f86b3f in wgbm_window_teardown () from /usr/lib64/libwaffle-1.so.0
(gdb) bt
#0 0x00007ffff7f86b3f in wgbm_window_teardown ()
from /usr/lib64/libwaffle-1.so.0
#1 0x00007ffff7f86d68 in wgbm_window_destroy ()
from /usr/lib64/libwaffle-1.so.0
#2 0x00007ffff7f86e5b in wgbm_window_create ()
from /usr/lib64/libwaffle-1.so.0
#3 0x00007ffff7f824e7 in waffle_window_create2 ()
from /usr/lib64/libwaffle-1.so.0
#4 0x00007ffff7f82606 in waffle_window_create ()
from /usr/lib64/libwaffle-1.so.0
#5 0x00005555555565d7 in main ()
Without any other output. This points to the creation somehow failing and a knock-on error in teardown. I don't get a log of the error (couldn't figure out how to make that print). Ideally it (a) wouldn't crash when cleaning up the error and (b) wouldn't get the error in the first place.
renderD129 for me is a NVIDIA G84 GPU, which works fine with e.g. DRI_PRIME=...:
$ DRI_PRIME=pci-0000_04_00_0 wflinfo -p glx -a gl
Waffle platform: glx
Waffle api: gl
OpenGL vendor string: nouveau
OpenGL renderer string: NV84
OpenGL version string: 3.3 (Compatibility Profile) Mesa 20.3.2
OpenGL context flags: