[Mesa-dev] [PATCH] loader: Make drmGetVersion logic conditional on non-pci devices

Lauri Kasanen cand at gmx.com
Thu Jan 30 02:30:55 PST 2014


On Wed, 29 Jan 2014 17:33:23 -0800
Stéphane Marchesin <marcheu at chromium.org> wrote:

> On systems without libudev, the loader_get_pci_id_for_fd() call will
> return 0, which will trigger the drmGetVersion logic. Sadly, this
> logic assumes that the kernel driver name matches the dri driver name,
> which is not the case on recent intel GPUs (for example i965 dri
> driver and i915 kernel module).
> 
> This patch changes this logic by making it conditional on a list of
> known non-pci drivers (freedreno and tegra). This fixes dri on machines
> without libudev.
> ---

Reviewed-by: Lauri Kasanen <cand at gmx.com>

This should also fix r600 (which got mapped to "radeon_dri.so").

As for why I don't have libudev - nothing needed it so far, and now
that udev is in systemd, it will not be coming to my systems.

- Lauri


More information about the mesa-dev mailing list