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

@@ -130,8 +130,8 @@ class Kernel : public BaseObject<_cl_kernel> {
cl_int setArgSvm(uint32_t argIndex, size_t svmAllocSize, void *svmPtr, GraphicsAllocation *svmAlloc, cl_mem_flags svmFlags);
cl_int setArgSvmAlloc(uint32_t argIndex, void *svmPtr, GraphicsAllocation *svmAlloc);
void setKernelExecInfo(GraphicsAllocation *argValue);
void clearKernelExecInfo();
void setSvmKernelExecInfo(GraphicsAllocation *argValue);
void clearSvmKernelExecInfo();
cl_int getInfo(cl_kernel_info paramName, size_t paramValueSize,
void *paramValue, size_t *paramValueSizeRet) const;
@@ -174,10 +174,6 @@ class Kernel : public BaseObject<_cl_kernel> {
return kernelArguments;
}
const std::vector<GraphicsAllocation *> &getKernelSvmGfxAllocations() const {
return kernelSvmGfxAllocations;
}
size_t getKernelArgsNumber() const {
return kernelInfo.kernelArgInfo.size();
}