summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYusuf Khan <yusisamerican@gmail.com>2024-04-19 00:44:20 -0500
committerYusuf Khan <yusisamerican@gmail.com>2024-04-19 00:44:20 -0500
commitb1b6f64bde0215c13e22615553a79f433368af80 (patch)
tree6eac53aab41596b4b844fe4addbc5a35742e05a9 /src
parent0c96dc00014104edcd890fa2eab3322534b13821 (diff)
g80: dont set accelmethod to xaa when xaa is disabled
Signed-off-by: Yusuf Khan <yusisamerican@gmail.com> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/merge_requests/15>
Diffstat (limited to 'src')
-rw-r--r--src/g80_driver.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/g80_driver.c b/src/g80_driver.c
index 10b81db..b022159 100644
--- a/src/g80_driver.c
+++ b/src/g80_driver.c
@@ -281,9 +281,12 @@ G80PreInit(ScrnInfoPtr pScrn, int flags)
xf86DrvMsg(pScrn->scrnIndex, X_CONFIG, "Acceleration disabled\n");
}
s = xf86GetOptValString(pNv->Options, OPTION_ACCEL_METHOD);
+#ifdef HAVE_XAA_H
if(!s || !strcasecmp(s, "xaa"))
pNv->AccelMethod = XAA;
- else if(!strcasecmp(s, "exa"))
+ else
+#endif
+ if(!strcasecmp(s, "exa"))
pNv->AccelMethod = EXA;
else {
xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Unrecognized AccelMethod "