Remove MemObj::rootDeviceEnvironment

Pass Device to Buffer::setArgStateful

Related-To: NEO-4672
Change-Id: I0b7ed3ee578139f250c8470532dc0ae2eb2991e1
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2020-06-30 17:42:12 +02:00
committed by sys_ocldev
parent 6ba5fe2e86
commit 5bc511b77d
13 changed files with 37 additions and 40 deletions

View File

@ -139,7 +139,7 @@ void gtpinNotifyKernelSubmit(cl_kernel kernel, void *pCmdQueue) {
void *pSurfaceState = gtpinHelper.getSurfaceState(pKernel, gtpinBTI);
cl_mem buffer = (cl_mem)resource;
auto pBuffer = castToObjectOrAbort<Buffer>(buffer);
pBuffer->setArgStateful(pSurfaceState, false, false, false, false, device.getRootDeviceIndex());
pBuffer->setArgStateful(pSurfaceState, false, false, false, false, device.getDevice());
}
}