mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Return CL_INVALID_ARG_SIZE instead of CL_INVALID_ARG_VALUE
Change-Id: Ia8792035e19a450f1399f8be3287ef46d0d6609d
This commit is contained in:
committed by
sys_ocldev
parent
29794db9d9
commit
78f505f4f4
@@ -1093,7 +1093,7 @@ cl_int Kernel::setArgBuffer(uint32_t argIndex,
|
||||
const void *argVal) {
|
||||
|
||||
if (argSize != sizeof(cl_mem *))
|
||||
return CL_INVALID_ARG_VALUE;
|
||||
return CL_INVALID_ARG_SIZE;
|
||||
|
||||
const auto &kernelArgInfo = kernelInfo.kernelArgInfo[argIndex];
|
||||
auto clMem = reinterpret_cast<const cl_mem *>(argVal);
|
||||
|
||||
Reference in New Issue
Block a user