mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
fix: use correct memoryBanks when makeResident is called in aub mode
Related-To: NEO-12869 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
cb3463db05
commit
74432a3626
@@ -42,11 +42,12 @@ MemoryOperationsStatus AubMemoryOperationsHandler::makeResident(Device *device,
|
||||
continue;
|
||||
}
|
||||
|
||||
auto memoryBanks = static_cast<uint32_t>(getMemoryBanksBitfield(allocation, device).to_ulong());
|
||||
uint64_t gpuAddress = device ? device->getGmmHelper()->decanonize(allocation->getGpuAddress()) : allocation->getGpuAddress();
|
||||
aub_stream::AllocationParams params(gpuAddress,
|
||||
allocation->getUnderlyingBuffer(),
|
||||
allocation->getUnderlyingBufferSize(),
|
||||
allocation->storageInfo.getMemoryBanks(),
|
||||
memoryBanks,
|
||||
hint,
|
||||
allocation->getUsedPageSize());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user