summaryrefslogtreecommitdiffstats
path: root/deps/xorg-server/patches/fix-nouveau-segfault.diff
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2020-06-17 23:14:18 +0200
committer Eric Hameleers <alien@slackware.com>2020-06-17 23:14:18 +0200
commitacd0240b8f28f165ca712c44cb34911a8adbfc50 (patch)
treef5e4700543a58c31801ee6607b0151f4421506f8 /deps/xorg-server/patches/fix-nouveau-segfault.diff
parent9ca11555e8826c62fb5a06f978aa1725a74942bc (diff)
downloadktown-acd0240b8f28f165ca712c44cb34911a8adbfc50.tar.gz
ktown-acd0240b8f28f165ca712c44cb34911a8adbfc50.tar.xz
Deps/xorg-server: refresh the build script
Sync with the Slackware version. Used in an attempt to troubleshoot the VT switch behaviour in runlevel 3 with elogind installed... turned out that /usr/bin/startx needed a different patch, replacing a systemd check with an elogind check.
Diffstat (limited to 'deps/xorg-server/patches/fix-nouveau-segfault.diff')
-rw-r--r--deps/xorg-server/patches/fix-nouveau-segfault.diff12
1 files changed, 12 insertions, 0 deletions
diff --git a/deps/xorg-server/patches/fix-nouveau-segfault.diff b/deps/xorg-server/patches/fix-nouveau-segfault.diff
new file mode 100644
index 0000000..db66956
--- /dev/null
+++ b/deps/xorg-server/patches/fix-nouveau-segfault.diff
@@ -0,0 +1,12 @@
+--- ./render/mipict.c.orig 2018-05-10 11:32:37.000000000 -0500
++++ ./render/mipict.c 2018-05-30 00:01:50.648530333 -0500
+@@ -394,6 +394,9 @@
+ CARD32 r, g, b, a;
+ miIndexedPtr pIndexed;
+
++ if(! format)
++ *pixel = (color->alpha >> 8 << 24) | (color->red >> 8 << 16) | (color->green & 0xff00) | (color->blue >> 8);
++ else
+ switch (format->type) {
+ case PictTypeDirect:
+ r = color->red >> (16 - Ones(format->direct.redMask));