summaryrefslogtreecommitdiff
path: root/src/smi_driver.c
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@gmail.com>2008-08-16 12:50:26 +0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-08-16 19:16:28 -0300
commit45c6aedd6fe4e4d6abe58d1bb39ec01049404f09 (patch)
tree1bc4b47649036f7b35eea04dd68fc66b602f456c /src/smi_driver.c
parent8feca790a6e92799019237ac69a4ef618cacfaae (diff)
Updates in SMI_EnterVT when remapping memory.
Update the screen pixmap header with the new aperture address when remapping framebuffer memory in SMI_EnterVT. Update pSmi->EXADriverPtr->memoryBase too, in case EXA is being used. Signed-off-by: Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>
Diffstat (limited to 'src/smi_driver.c')
-rw-r--r--src/smi_driver.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/smi_driver.c b/src/smi_driver.c
index a29fddc..6e4de86 100644
--- a/src/smi_driver.c
+++ b/src/smi_driver.c
@@ -1193,6 +1193,11 @@ SMI_EnterVT(int scrnIndex, int flags)
SMI_MapMem(pScrn);
SMI_Save(pScrn);
+ /* FBBase may have changed after remapping the memory */
+ pScrn->pixmapPrivate.ptr=pSmi->FBBase;
+ if(pSmi->useEXA)
+ pSmi->EXADriverPtr->memoryBase=pSmi->FBBase;
+
/* #670 */
if (pSmi->shadowFB) {
pSmi->FBOffset = pSmi->savedFBOffset;