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

Eric Anholt eric at anholt.net
Thu Jan 30 00:07:27 PST 2014


Stéphane Marchesin <marcheu at chromium.org> writes:

> 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.

So, why are Linux people building without libudev?  Is it just that we
forgot to make libudev-devel required in configure.ac?

I want to figure out how to make Mesa actually be able to autodetect.
It's required for DRI3, gbm, wayland, and android.  Having only DRI2
working isn't OK.  If we have to drmGetVersion and then use
device-specific ioctls to guess, I'm willing to do that, but I'd like to
hear a good reason to not just use udev first.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140130/cbc1de88/attachment.pgp>


More information about the mesa-dev mailing list