git.iko.soy/typeable/nixpkgs
on master help sign in
xorg-server: enable DRI3 (close #5381)

TEST needed. I tested on my NixOS Thinkpad with Optimus nvidia and intel cards. Testing in other architectures is needed. This patch also improves the regular expressions that scan the build configuration files to enable the building of a binary utility in xf86-video-intel: intel-virtual-output. This utility is useful for some Optimus laptops DRI3 was added to xorg-server propagatedBuildInputs so now it's inherited by several projects that can use it.

commit06e6d7def2b50e55d14a35277612749f88ab3559 authorSebastián Bernardo Galkin <paraseba@gmail.com> dateWed 17 Dec 2014, 22:34 (12 years ago) parent6fa7ea0
3 files changed+8−5
pkgs/servers/x11/xorg/default.nix+4−4 pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl+3 pkgs/servers/x11/xorg/overrides.nix+1−1
pkgs/servers/x11/xorg/default.nix+4−4
@@ -1561,8 +1561,8 @@ let
15611561 url = mirror://xorg/individual/driver/xf86-video-intel-2.99.916.tar.bz2;
15621562 sha256 = "00gd3v3xgrmj8aliwjxkml13gfqvcbjazb6l5m1wkry39agq36j0";
15631563 };
1564− buildInputs = [pkgconfig dri2proto dri3proto fontsproto glamoregl libdrm libpng udev libpciaccess presentproto randrproto renderproto libX11 xcbutil libxcb libXext xextproto xf86driproto libXfixes xorgserver xproto libXrandr libXrender libxshmfence libXvMC ];
1565− }) // {inherit dri2proto dri3proto fontsproto glamoregl libdrm libpng udev libpciaccess presentproto randrproto renderproto libX11 xcbutil libxcb libXext xextproto xf86driproto libXfixes xorgserver xproto libXrandr libXrender libxshmfence libXvMC ;};
1564+ buildInputs = [pkgconfig dri2proto dri3proto fontsproto glamoregl libdrm libpng udev libpciaccess presentproto randrproto renderproto libX11 xcbutil libxcb libXcursor libXdamage libXext xextproto xf86driproto libXfixes xorgserver xproto libXrandr libXrender libxshmfence libXtst libXvMC ];
1565+ }) // {inherit dri2proto dri3proto fontsproto glamoregl libdrm libpng udev libpciaccess presentproto randrproto renderproto libX11 xcbutil libxcb libXcursor libXdamage libXext xextproto xf86driproto libXfixes xorgserver xproto libXrandr libXrender libxshmfence libXtst libXvMC ;};
15661566
15671567 xf86videomach64 = (mkDerivation "xf86videomach64" {
15681568 name = "xf86-video-mach64-6.9.4";
@@ -1991,8 +1991,8 @@ let
19911991 url = mirror://xorg/individual/xserver/xorg-server-1.16.2.901.tar.bz2;
19921992 sha256 = "19jb8v26wc332ramwjdg5vjh3s36kr7n46s6fdfaxrj1wif5m27g";
19931993 };
1994− buildInputs = [pkgconfig renderproto libdrm openssl libX11 libXau libXaw libxcb xcbutil xcbutilwm xcbutilimage xcbutilkeysyms libXdmcp libXfixes libxkbfile libXmu libXpm libXrender libXres libxshmfence libXt ];
1995− }) // {inherit renderproto libdrm openssl libX11 libXau libXaw libxcb xcbutil xcbutilwm xcbutilimage xcbutilkeysyms libXdmcp libXfixes libxkbfile libXmu libXpm libXrender libXres libxshmfence libXt ;};
1994+ buildInputs = [pkgconfig dri2proto dri3proto renderproto libdrm openssl libX11 libXau libXaw libxcb xcbutil xcbutilwm xcbutilimage xcbutilkeysyms libXdmcp libXfixes libxkbfile libXmu libXpm libXrender libXres libxshmfence libXt ];
1995+ }) // {inherit dri2proto dri3proto renderproto libdrm openssl libX11 libXau libXaw libxcb xcbutil xcbutilwm xcbutilimage xcbutilkeysyms libXdmcp libXfixes libxkbfile libXmu libXpm libXrender libXres libxshmfence libXt ;};
19961996
19971997 xorgsgmldoctools = (mkDerivation "xorgsgmldoctools" {
19981998 name = "xorg-sgml-doctools-1.11";
pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl+3
@@ -36,6 +36,8 @@ $pcMap{"libudev"} = "udev";
3636$pcMap{"gl"} = "mesa";
3737$pcMap{"\$PIXMAN"} = "pixman";
3838$pcMap{"\$RENDERPROTO"} = "renderproto";
39+$pcMap{"\$DRI3PROTO"} = "dri3proto";
40+$pcMap{"\$DRI2PROTO"} = "dri2proto";
3941
4042
4143my $downloadCache = "./download-cache";
@@ -207,6 +209,7 @@ while (<>) {
207209 process \@requires, $1 while $file =~ /XDMCP_MODULES=\"(.*)\"/g;
208210 process \@requires, $1 while $file =~ /XORG_MODULES=\"(.*)\"/g;
209211 process \@requires, $1 while $file =~ /NEEDED=\"(.*)\"/g;
212+ process \@requires, $1 while $file =~ /ivo_requires=\"(.*)\"/g;
210213 process \@requires, $1 while $file =~ /XORG_DRIVER_CHECK_EXT\([^,]*,([^\)]*)\)/g;
211214
212215 push @requires, "libxslt" if $pkg =~ /libxcb/;
pkgs/servers/x11/xorg/overrides.nix+1−1
@@ -266,7 +266,7 @@ in
266266 recordproto libXext pixman libXfont
267267 damageproto xcmiscproto bigreqsproto
268268 libpciaccess inputproto xextproto randrproto renderproto presentproto
269− dri2proto kbproto xineramaproto resourceproto scrnsaverproto videoproto
269+ dri2proto dri3proto kbproto xineramaproto resourceproto scrnsaverproto videoproto
270270 ];
271271 commonPatches = [ ./xorgserver-xkbcomp-path.patch ];
272272 # XQuartz requires two compilations: the first to get X / XQuartz,