Skip to content

drm-shim: apply file overrides for open

Chia-I Wu requested to merge olv/mesa:drm-shim-pci into main

loader_get_pci_driver calls os_read_file on linux to get the pci id, and os_read_file uses open instead of fopen.

This allows loader_get_pci_driver to work rather than falling back to loader_get_kernel_driver_name.

For my use case, it allows the loader to choose radeonsi_dri.so rather than amdgpu_dri.so.

Merge request reports