mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Ensure that allocations in 4GB heap have non 0 GPU address to patch.
- That address is used later to deduce that allocation is non null - If we have address 0 it is incorrectly detected as null ptr on the GPU. Change-Id: I45e1bb31f1788528327da35bfdcc13f3fa6beec2
This commit is contained in:
committed by
sys_ocldev
parent
bb7f8d9b88
commit
2ca3e4c4e5
@@ -349,7 +349,7 @@ bool Wddm::mapGpuVirtualAddressImpl(Gmm *gmm, D3DKMT_HANDLE handle, void *cpuPtr
|
||||
}
|
||||
|
||||
if (allocation32bit) {
|
||||
MapGPUVA.MinimumAddress = gfxPartition.Heap32[3].Base;
|
||||
MapGPUVA.MinimumAddress = gfxPartition.Heap32[3].Base + MemoryConstants::pageSize;
|
||||
MapGPUVA.MaximumAddress = gfxPartition.Heap32[3].Limit;
|
||||
MapGPUVA.BaseAddress = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user