Pass root device index to Buffer::setArgStateless

Related-To: NEO-4672
Change-Id: I3acb09b14588fd4aad253eb82c34d1c2d192a34e
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2020-06-23 16:53:30 +02:00
committed by sys_ocldev
parent 1c312f76e1
commit ec391d62ee
4 changed files with 10 additions and 11 deletions

View File

@@ -1292,7 +1292,7 @@ cl_int Kernel::setArgBuffer(uint32_t argIndex,
auto patchSize = kernelArgInfo.kernelArgPatchInfoVector[0].size;
uint64_t addressToPatch = buffer->setArgStateless(patchLocation, patchSize, !this->isBuiltIn);
uint64_t addressToPatch = buffer->setArgStateless(patchLocation, patchSize, getDevice().getRootDeviceIndex(), !this->isBuiltIn);
if (DebugManager.flags.AddPatchInfoCommentsForAUBDump.get()) {
PatchInfoData patchInfoData(addressToPatch - buffer->getOffset(), static_cast<uint64_t>(buffer->getOffset()), PatchInfoAllocationType::KernelArg, reinterpret_cast<uint64_t>(getCrossThreadData()), static_cast<uint64_t>(kernelArgInfo.kernelArgPatchInfoVector[0].crossthreadOffset), PatchInfoAllocationType::IndirectObjectHeap, patchSize);