mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
Move heap32[0] to heap32[3].
Change-Id: Icea6eef5646894283725e29ce7ee930284af2673
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user