Kristian Høgsberg <k...@bitplanet.net> writes: > The udev hwdb is a mechanism for applying udev properties to devices at > hotplug time. The hwdb text files are compiled into a binary database > that lets udev efficiently look up and apply properties to devices that > match a given modalias. > > This patch exports the mesa PCI ID tables as hwdb files and extends the > loader code to try to look up the driver name from the DRI_DRIVER udev > property. The benefits to this approach are: > > - No longer PCI specific, any device udev can match with a modalias can > be assigned a DRI driver. > > - Available outside mesa; writing a DRI2 compatible generic DDX with > glamor needs to know the DRI driver name to send to the client. > > - Can be overridden by custom udev rules.
Looks really good. Just a couple little bugs I see. > diff --git a/src/loader/Makefile.am b/src/loader/Makefile.am > index 371dd57..bf3918b 100644 > --- a/src/loader/Makefile.am > +++ b/src/loader/Makefile.am > @@ -44,3 +44,18 @@ libloader_la_LIBADD += \ > endif > > libloader_la_SOURCES = $(LOADER_C_FILES) > + > + > +noinst_PROGRAMS = dump-hwdb > +dump_hwdb_SOURCES = dump-hwdb.c > +dump_hwdb_CPPFLAGS = -I$(top_srcdir)/include Looks like this is being built for the target, not the host (where it will be executed). > +dist_udevhwdb_DATA = 20-dri-driver.hwdb > + > +# Update hwdb on installation. Do not bother if installing > +# in DESTDIR, since this is likely for packaging purposes. > +install-data-hook: > + -test -n "$(DESTDIR)" || udevadm hwdb --update It looks like this will error out your build if not installing as root.
pgp4TJVdpLUXj.pgp
Description: PGP signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev