Bug 278363

Summary: linsysfs: /sys/class/drm and /sys/dev/char/226:* contents don't match /dev/dri
Product: Base System Reporter: Alex S <iwtcex>
Component: kernAssignee: freebsd-emulation (Nobody) <emulation>
Status: New ---    
Severity: Affects Only Me CC: emaste
Priority: ---    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Alex S 2024-04-14 15:27:07 UTC
There are two significant issues here:

1. linsysfs creates entries for everything that has vgapci attached to it, regardless of whether the GPU has any associated /dev/dri/card* nodes — this might (and occasionally does) result in Mesa's libGL picking the wrong driver in multi-GPU configurations;

2. there are no entries for /dev/dri/renderD* nodes, which breaks Vulkan initialization, forcing Mesa to choose the software rendering fallback.

(See https://github.com/freebsd/drm-kmod/issues/290 and https://forums.freebsd.org/threads/linuxulator-vs-intel-amd-gpus.92445/ for context.)