[PATCH libXfont] Eliminate calls back to X server or font server functions by name

2015-09-02 Thread Keith Packard
This eliminates the weak symbol adventures and makes all of the calls back to the X server or Font server go through a table of functions instead, clarifying the required API. As this is a rather major change to the API for the library, it now installs itself as libXfont_2 instead of libXfont, and

[PATCH] Switch to the libXfont_2 API.

2015-09-02 Thread Keith Packard
This new libXfont API eliminates exposing internal X server symbols to the font library, replacing those with a struct full of the entire API needed to use that library. Signed-off-by: Keith Packard --- configure.ac | 2 +- dix/dixfonts.c | 67 +

Re: [PATCH] [RFC] xf86: add glamor preferred probing

2015-09-02 Thread Hans de Goede
Hi Dave, On 02-09-15 06:57, Dave Airlie wrote: From: Dave Airlie This patch adds an interface to query and ask DDX if they would prefer to use modesetting/glamor for a particular hw configuration, and if so to fail probing on that hw, so that modesetting gets picked up. It adds a new driverFu

Re: [PATCH] [RFC] xf86: add glamor preferred probing

2015-09-02 Thread Dave Airlie
On 2 September 2015 at 18:37, Hans de Goede wrote: > Hi Dave, > > On 02-09-15 06:57, Dave Airlie wrote: >> >> From: Dave Airlie >> >> This patch adds an interface to query and ask DDX if >> they would prefer to use modesetting/glamor for a particular >> hw configuration, and if so to fail probing

Re: [PATCH] [RFC] xf86: add glamor preferred probing

2015-09-02 Thread Hans de Goede
Hi, On 02-09-15 11:13, Dave Airlie wrote: On 2 September 2015 at 18:37, Hans de Goede wrote: Hi Dave, On 02-09-15 06:57, Dave Airlie wrote: From: Dave Airlie This patch adds an interface to query and ask DDX if they would prefer to use modesetting/glamor for a particular hw configuration,

Re: [PATCH] Do nothing when there are no platform devices

2015-09-02 Thread Marcin Juszkiewicz
W dniu 01.09.2015 o 13:07, Marcin Juszkiewicz pisze: W dniu 01.09.2015 o 09:23, Dave Airlie pisze: and setting xf86_num_platform_devices to 1 is the question you need to answer Digging into it today. OK, switched to git HEAD, ignored my patch and went digging. drm/card0 is added but when

Re: [PATCH libXfont] Eliminate calls back to X server or font server functions by name

2015-09-02 Thread Julien Cristau
On Wed, Sep 2, 2015 at 00:15:06 -0700, Keith Packard wrote: > +#ifndef _LIBXFONT_H_ > +#define _LIBXFONT_H_ Include the 2 from the filename in the guard macro's name? Cheers, Julien ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.

Re: [PATCH libXfont] Eliminate calls back to X server or font server functions by name

2015-09-02 Thread Matt Turner
On Wed, Sep 2, 2015 at 12:15 AM, Keith Packard wrote: > This eliminates the weak symbol adventures and makes all of the calls > back to the X server or Font server go through a table of functions > instead, clarifying the required API. > > As this is a rather major change to the API for the librar

Re: [PATCH libXfont] Eliminate calls back to X server or font server functions by name

2015-09-02 Thread Emil Velikov
Hi Keith, On 2 September 2015 at 08:15, Keith Packard wrote: > This eliminates the weak symbol adventures and makes all of the calls > back to the X server or Font server go through a table of functions > instead, clarifying the required API. > > As this is a rather major change to the API for th

Re: [PATCH libXfont] Eliminate calls back to X server or font server functions by name

2015-09-02 Thread Keith Packard
Julien Cristau writes: > On Wed, Sep 2, 2015 at 00:15:06 -0700, Keith Packard wrote: > >> +#ifndef _LIBXFONT_H_ >> +#define _LIBXFONT_H_ > > Include the 2 from the filename in the guard macro's name? Yeah. I just renamed it before pushing out the patch and missed a couple of spots. -- -keith

Re: [PATCH libXfont] Eliminate calls back to X server or font server functions by name

2015-09-02 Thread Keith Packard
Matt Turner writes: >> +#include > > I don't know where this header is supposed to be (maybe it's supposed > to be libxfont_2.h?), but it's not there and causes a build failure. > Simply removing the #include lets it compile without warnings. Yeah, I refactored the includes and now this f

Re: [PATCH libXfont] Eliminate calls back to X server or font server functions by name

2015-09-02 Thread Keith Packard
Emil Velikov writes: > There are very few projects that use underscore as above. The most > common approach is libXfont-2, although some prefer libXfont2. I'm easy; libXfont2 is probably a better plan than introducing punctuation into the name. Thanks for your feedback! -- -keith signature.a

[PATCH libXfont] Eliminate calls back to X server or font server functions by name (v2)

2015-09-02 Thread Keith Packard
This eliminates the weak symbol adventures and makes all of the calls back to the X server or Font server go through a table of functions instead, clarifying the required API. As this is a rather major change to the API for the library, it now installs itself as libXfont2 instead of libXfont, and

[PATCH] Switch to the libXfont2 API (v2)

2015-09-02 Thread Keith Packard
This new libXfont API eliminates exposing internal X server symbols to the font library, replacing those with a struct full of the entire API needed to use that library. v2: Use libXfont2 instead of libXfont_2 Signed-off-by: Keith Packard --- configure.ac | 2 +- dix/dixfonts.c | 66

Re: [PATCH libXfont] Eliminate calls back to X server or font server functions by name (v2)

2015-09-02 Thread Matt Turner
On Wed, Sep 2, 2015 at 2:30 PM, Keith Packard wrote: > This eliminates the weak symbol adventures and makes all of the calls > back to the X server or Font server go through a table of functions > instead, clarifying the required API. > > As this is a rather major change to the API for the library