Move heap32[0] to heap32[3].

Change-Id: Icea6eef5646894283725e29ce7ee930284af2673
This commit is contained in:
Mrozek, Michal
2018-12-03 09:32:36 +01:00
parent 1f7448425d
commit 09f3f4e856
2 changed files with 6 additions and 6 deletions

View File

@@ -349,8 +349,8 @@ bool Wddm::mapGpuVirtualAddressImpl(Gmm *gmm, D3DKMT_HANDLE handle, void *cpuPtr
}
if (allocation32bit) {
MapGPUVA.MinimumAddress = gfxPartition.Heap32[0].Base;
MapGPUVA.MaximumAddress = gfxPartition.Heap32[0].Limit;
MapGPUVA.MinimumAddress = gfxPartition.Heap32[3].Base;
MapGPUVA.MaximumAddress = gfxPartition.Heap32[3].Limit;
MapGPUVA.BaseAddress = 0;
}
}
@@ -805,11 +805,11 @@ PFND3DKMT_ESCAPE Wddm::getEscapeHandle() const {
}
uint64_t Wddm::getHeap32Base() {
return alignUp(gfxPartition.Heap32[0].Base, MemoryConstants::pageSize);
return alignUp(gfxPartition.Heap32[3].Base, MemoryConstants::pageSize);
}
uint64_t Wddm::getHeap32Size() {
return alignDown(gfxPartition.Heap32[0].Limit, MemoryConstants::pageSize);
return alignDown(gfxPartition.Heap32[3].Limit, MemoryConstants::pageSize);
}
VOID *Wddm::registerTrimCallback(PFND3DKMT_TRIMNOTIFICATIONCALLBACK callback, WddmResidencyController &residencyController) {

View File

@@ -173,8 +173,8 @@ bool WddmMock::openAdapter() {
}
void WddmMock::setHeap32(uint64_t base, uint64_t size) {
gfxPartition.Heap32[0].Base = base;
gfxPartition.Heap32[0].Limit = size;
gfxPartition.Heap32[3].Base = base;
gfxPartition.Heap32[3].Limit = size;
}
GMM_GFX_PARTITIONING *WddmMock::getGfxPartitionPtr() {