Kernel refactor.

- Change function names to indicate they work on SVM allocations.
- Remove one function used only in tests.

Change-Id: I9b18d9fee3d4f2a46a7f458ca73d39b3863ce6d3
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
This commit is contained in:
Mrozek, Michal
2019-06-14 07:10:45 +02:00
committed by sys_ocldev
parent 8e969684f1
commit be48b56732
7 changed files with 23 additions and 27 deletions

View File

@@ -4002,7 +4002,7 @@ cl_int CL_API_CALL clSetKernelExecInfo(cl_kernel kernel,
return CL_INVALID_VALUE;
}
pKernel->clearKernelExecInfo();
pKernel->clearSvmKernelExecInfo();
for (uint32_t i = 0; i < numPointers; i++) {
auto svmData = pKernel->getContext().getSVMAllocsManager()->getSVMAlloc((const void *)pSvmPtrList[i]);
if (svmData == nullptr) {
@@ -4011,7 +4011,7 @@ cl_int CL_API_CALL clSetKernelExecInfo(cl_kernel kernel,
return retVal;
}
GraphicsAllocation *svmAlloc = svmData->gpuAllocation;
pKernel->setKernelExecInfo(svmAlloc);
pKernel->setSvmKernelExecInfo(svmAlloc);
}
break;
}