diff options
author | Tiago Vignatti <tiago.vignatti@nokia.com> | 2010-05-06 20:16:21 +0300 |
---|---|---|
committer | Tiago Vignatti <tiago.vignatti@nokia.com> | 2010-05-06 20:16:21 +0300 |
commit | 5bf78ef9a273b4bc56b9a2548e9715333aa885ad (patch) | |
tree | f955ab8623d0767a2469d597aa2b27fce98413b3 | |
parent | b918f6d35409a2c5e74232b540dffad57f85cf0a (diff) |
Check xf86EnableAccess only in old servers
On new X servers this function is dummy. Similar functionality is now in place
using lock/unlock mechanism of the VGA arbitration, triggered inside the
server.
Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
-rw-r--r-- | src/tseng_mode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tseng_mode.c b/src/tseng_mode.c index 7237f1b..f075226 100644 --- a/src/tseng_mode.c +++ b/src/tseng_mode.c @@ -1522,7 +1522,9 @@ TsengCrtcDPMSSet(ScrnInfoPtr pScrn, int PowerManagementMode, int flags) vgaHWPtr hwp = VGAHWPTR(pScrn); CARD8 seq1, crtc34; +#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 8 xf86EnableAccess(pScrn); +#endif switch (PowerManagementMode) { case DPMSModeOn: default: |