diff options
author | Kevin Brace <kevinbrace@gmx.com> | 2020-02-28 17:42:45 -0800 |
---|---|---|
committer | Kevin Brace <kevinbrace@gmx.com> | 2020-02-28 17:42:45 -0800 |
commit | c461e101ef898a34c03253e605594925397afb3b (patch) | |
tree | 3ee42250f2698f4b1a1ad01d9567099218e137af /src | |
parent | 25e4cced512a54427c1d6735c28bf4cf3d30b8a9 (diff) |
Initialize memPhysBase member of ScrnInfoRec struct inside viaUMSCreate()
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/via_ums.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/via_ums.c b/src/via_ums.c index 24083e6..47b5678 100644 --- a/src/via_ums.c +++ b/src/via_ums.c @@ -237,20 +237,6 @@ viaMapMMIO(ScrnInfoPtr pScrn) pVia->FBFreeStart = 0; pVia->FBFreeEnd = pVia->videoRambytes; -#ifdef HAVE_PCIACCESS - if (pVia->Chipset == VIA_VX900) { - pScrn->memPhysBase = pVia->PciInfo->regions[2].base_addr; - } else { - pScrn->memPhysBase = pVia->PciInfo->regions[0].base_addr; - } -#else - if (pVia->Chipset == VIA_VX900) { - pScrn->memPhysBase = pVia->PciInfo->memBase[2]; - } else { - pScrn->memPhysBase = pVia->PciInfo->memBase[0]; - } -#endif - /* MMIO for MPEG engine. */ pVia->MpegMapBase = pVia->MapBase + 0xc00; @@ -766,6 +752,20 @@ viaUMSCreate(ScrnInfoPtr pScrn) pScrn->fbOffset = pScrn->videoRam << 10; } +#ifdef HAVE_PCIACCESS + if (pVia->Chipset == VIA_VX900) { + pScrn->memPhysBase = pVia->PciInfo->regions[2].base_addr; + } else { + pScrn->memPhysBase = pVia->PciInfo->regions[0].base_addr; + } +#else + if (pVia->Chipset == VIA_VX900) { + pScrn->memPhysBase = pVia->PciInfo->memBase[2]; + } else { + pScrn->memPhysBase = pVia->PciInfo->memBase[0]; + } +#endif + if (pVia->directRenderingType == DRI_NONE) { if (!pVia->useEXA) { if (!viaInitFB(pScrn)) { |