mirror of
https://github.com/X11Libre/xf86-video-nv.git
synced 2026-03-24 01:24:21 +00:00
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>
This commit is contained in:
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user