summaryrefslogtreecommitdiff
path: root/src/vmware.c
diff options
context:
space:
mode:
authorVinay <vinay@vinayb-dev4.(none)>2008-01-19 08:39:24 -0800
committerVinay <vinay@vinayb-dev4.(none)>2008-01-19 08:39:24 -0800
commita33ab73ffa5d3797d16c3a265ddefc56a5a93b6b (patch)
tree55dae1066c503c393c66409151216e7616e81ccd /src/vmware.c
parent62d898669baccfd4c312f3ed8f228d0c3217d3c3 (diff)
Trivial libpciaccess related fix
Fix VMWAREUnmapMem to correctly unmap memory for the libpciaccess case.
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;
}