mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
Add resolves for USM allocations when aux translation is required
Related-To: NEO-5107 Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
214deac4dc
commit
f9f5c96ffe
@@ -2481,6 +2481,17 @@ void Kernel::fillWithKernelObjsForAuxTranslation(KernelObjsForAuxTranslation &ke
|
||||
}
|
||||
}
|
||||
}
|
||||
if (getContext().getSVMAllocsManager()) {
|
||||
for (auto &allocation : getContext().getSVMAllocsManager()->getSVMAllocs()->allocations) {
|
||||
auto gfxAllocation = allocation.second.gpuAllocations.getDefaultGraphicsAllocation();
|
||||
if (gfxAllocation->getAllocationType() == GraphicsAllocation::AllocationType::BUFFER_COMPRESSED) {
|
||||
kernelObjsForAuxTranslation.insert({KernelObjForAuxTranslation::Type::GFX_ALLOC, gfxAllocation});
|
||||
}
|
||||
if (gfxAllocation->getAllocationType() == GraphicsAllocation::AllocationType::SVM_GPU) {
|
||||
kernelObjsForAuxTranslation.insert({KernelObjForAuxTranslation::Type::GFX_ALLOC, gfxAllocation});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user