Umio-Yasuno / libdrm-amdgpu-sys-rs

libdrm_amdgpu bindings for Rust, and some methods ported from Mesa3D
MIT License
9 stars 1 forks source link

Get path to DRM device files from sysfs when /dev/dri/by-path isn't available #4

Closed neeshy closed 6 months ago

neeshy commented 6 months ago

For systems that don't use udev, /dev/dri/by-path isn't typically available. This patch addresses that use case by finding the /dev/dri device file from information in /sys/bus/pci/drivers/amdgpu/<PCI_ID>/drm as a fallback.

Umio-Yasuno commented 6 months ago

I'm going to add a fix commit after merging this pr.