[PATCH xserver] config: remove --with-dri-driver-path option, use dri.pc #29740

Gaetan Nadon memsize at videotron.ca
Fri Sep 24 06:34:54 PDT 2010


On Thu, 2010-09-23 at 15:43 -0700, Keith Packard wrote:

> What's the state of this patch?  Seems like it should default to
> whatever the old default was in the absence of a dri.pc file? Or is
> everyone happy with the patch as-is?
> 


The only use of the driver path is within a formatted string.
Should the glx code attempt to load a driver when the dri package is
missing,
the load will fail as the filaname would be "/driverName_dri.so".


            snprintf(filename, sizeof filename,
        	     "%s/%s_dri.so", dri_driver_path, driverName);



        ./glx/glxdriswrast.c:static const char dri_driver_path[] = DRI_DRIVER_PATH;
        ./glx/glxdriswrast.c:	     "%s/%s_dri.so", dri_driver_path, driverName);
        ./glx/glxdri2.c:static const char dri_driver_path[] = DRI_DRIVER_PATH;
        ./glx/glxdri2.c:	     "%s/%s_dri.so", dri_driver_path, driverName);
        ./glx/glxdri.c:static const char dri_driver_path[] = DRI_DRIVER_PATH;
        ./glx/glxdri.c:             dri_driver_path, driverName);


Thanks for the review,

Gaetan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100924/0b92e935/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100924/0b92e935/attachment.pgp>


More information about the xorg-devel mailing list