summaryrefslogtreecommitdiff
path: root/user/xf86-video-r128/xaa.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-06 18:30:08 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-06 18:30:08 +0000
commit6f5ac18e8b5dbc0e13c640298c568f0f432719da (patch)
tree6db3dce28b7db7d729bd27ceeb3670b34ae9fcda /user/xf86-video-r128/xaa.patch
parent6c9721136977ab20ddc576bc400eab4067391dcb (diff)
downloadpackages-6f5ac18e8b5dbc0e13c640298c568f0f432719da.tar.gz
packages-6f5ac18e8b5dbc0e13c640298c568f0f432719da.tar.bz2
packages-6f5ac18e8b5dbc0e13c640298c568f0f432719da.tar.xz
packages-6f5ac18e8b5dbc0e13c640298c568f0f432719da.zip
user/xf86-video-r128: fix runtime linker failure (and leave null deref)
Diffstat (limited to 'user/xf86-video-r128/xaa.patch')
-rw-r--r--user/xf86-video-r128/xaa.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/user/xf86-video-r128/xaa.patch b/user/xf86-video-r128/xaa.patch
new file mode 100644
index 000000000..3ede81203
--- /dev/null
+++ b/user/xf86-video-r128/xaa.patch
@@ -0,0 +1,21 @@
+--- xf86-video-r128-6.12.0/src/r128_driver.c.old 2019-01-05 15:59:11.340000000 +0000
++++ xf86-video-r128-6.12.0/src/r128_driver.c 2019-01-05 16:16:10.810000000 +0000
+@@ -1887,14 +1887,16 @@
+ }
+
+ if (!info->noAccel) {
++#ifdef HAVE_XAA_H
+ if (R128XAAAccelInit(pScreen)) {
+ info->accelOn = TRUE;
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "XAA acceleration enabled.\n");
+- } else {
++ } else
++#endif
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "Acceleration disabled.\n");
+- }
++
+ }
+ }
+ }