[RFC xf86-video-freedreno] add OutputClass conf

Thierry Reding thierry.reding at gmail.com
Wed Jul 9 03:20:44 PDT 2014

On Tue, Jul 08, 2014 at 10:01:52AM -0400, Rob Clark wrote:
> This enables the xserver to associate the drm driver name "msm" to the
> xf86-video-freedreno driver.
> Signed-off-by: Rob Clark <robdclark at gmail.com>
> ---
> Not sure if anyone has a better suggestion for how to do that videodrv
> abi check in configure.ac.  The problem is, we don't want to install
> the .conf file snippet(s) for older xserver, as it will error out at
> startup complaining about unknown section "OutputClass".
> If this is the best way, I'll push it and update some of the other
> drivers.  (I assume Thierry already has patches for tegra.)
>  Makefile.am            |  2 +-
>  conf/42-freedreno.conf |  5 +++++
>  conf/Makefile.am       | 23 +++++++++++++++++++++++
>  configure.ac           | 26 ++++++++++++++++++++++++++
>  4 files changed, 55 insertions(+), 1 deletion(-)
>  create mode 100644 conf/42-freedreno.conf
>  create mode 100644 conf/Makefile.am

I came up with the attached patch. It's somewhat longer but I think the
version check becomes safer by using the header files of the server
that's being built against directly. Also it checks against a server
version number rather than a video ABI number. After all this isn't a
feature influenced by a change of video ABI.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Install-OutputClass-xorg.conf.d-snippet.patch
Type: text/x-diff
Size: 3607 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20140709/0ac7a168/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20140709/0ac7a168/attachment.sig>

More information about the xorg-devel mailing list