summaryrefslogtreecommitdiff
path: root/src/vmware.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vmware.c')
-rw-r--r--src/vmware.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vmware.c b/src/vmware.c
index c737f64..d71e48e 100644
--- a/src/vmware.c
+++ b/src/vmware.c
@@ -1046,7 +1046,11 @@ VMWAREUnmapMem(ScrnInfoPtr pScrn)
VmwareLog(("Unmapped: %p/%u\n", pVMWARE->FbBase, pVMWARE->videoRam));
+#if XSERVER_LIBPCIACCESS
+ pci_device_unmap_range(pVMWARE->PciInfo, pVMWARE->FbBase, pVMWARE->videoRam);
+#else
xf86UnMapVidMem(pScrn->scrnIndex, pVMWARE->FbBase, pVMWARE->videoRam);
+#endif
pVMWARE->FbBase = NULL;
return TRUE;
}