summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKevin Brace <kevinbrace@gmx.com>2020-03-09 19:01:04 -0700
committerKevin Brace <kevinbrace@gmx.com>2020-03-09 19:01:04 -0700
commita245948a455de13719ac6db13608b6cecad186de (patch)
tree0b2f766f39a4fe51a8a02073fc6e0231536334e4 /src
parent105868a7f7db6f9d05ec49f2777d226dc12d42e6 (diff)
Map FB during screen initialization rather than pre-initialization
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
Diffstat (limited to 'src')
-rw-r--r--src/via_driver.c1
-rw-r--r--src/via_ums.c13
2 files changed, 8 insertions, 6 deletions
diff --git a/src/via_driver.c b/src/via_driver.c
index e1a6b6e..6920f67 100644
--- a/src/via_driver.c
+++ b/src/via_driver.c
@@ -1216,7 +1216,6 @@ VIAPreInit(ScrnInfoPtr pScrn, int flags)
goto exit;
fail:
if (!pVia->KMS) {
- viaUnmapFB(pScrn);
viaUnmapMMIO(pScrn);
}
diff --git a/src/via_ums.c b/src/via_ums.c
index 042979a..f1c19ef 100644
--- a/src/via_ums.c
+++ b/src/via_ums.c
@@ -806,6 +806,14 @@ viaUMSCreate(ScrnInfoPtr pScrn)
}
#endif
+ /*
+ * Map FB PCI hardware resource to the memory map.
+ */
+ if (!viaMapFB(pScrn)) {
+ ret = FALSE;
+ goto exit;
+ }
+
if (pVia->directRenderingType == DRI_NONE) {
if (!pVia->useEXA) {
if (!viaInitFB(pScrn)) {
@@ -1142,11 +1150,6 @@ viaUMSPreInit(ScrnInfoPtr pScrn)
return FALSE;
}
- if (!viaMapFB(pScrn)) {
- viaUnmapMMIO(pScrn);
- return FALSE;
- }
-
return TRUE;
}