[Mesa-dev] [PATCH] loader: Make drmGetVersion logic conditional on non-pci devices
Stéphane Marchesin
stephane.marchesin at gmail.com
Thu Jan 30 00:22:42 PST 2014
On Thu, Jan 30, 2014 at 12:20 AM, Stéphane Marchesin <
stephane.marchesin at gmail.com> wrote:
>
>
>
> On Thu, Jan 30, 2014 at 12:07 AM, Eric Anholt <eric at anholt.net> wrote:
>
>> 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 talked with krh on irc, he seemed opposed to it. But yes, that would be
> fine by me. That said, it doesn't answer the question of other OSes. What
> should we do there?
>
Oh and of course, there's the recent udev-systemd integration. At least for
Chrome OS I know of no plans to use systemd.
Stéphane
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140130/1b6b6966/attachment.html>
More information about the mesa-dev
mailing list