mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
fix: return error code when set arg for local argument has size zero
Related-To: NEO-16450 Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
645fc3d8af
commit
a503776008
@@ -1391,6 +1391,10 @@ void Kernel::getResidency(std::vector<Surface *> &dst) {
|
||||
cl_int Kernel::setArgLocal(uint32_t argIndexIn,
|
||||
size_t argSize,
|
||||
const void *argVal) {
|
||||
if (argSize == 0u) {
|
||||
return CL_INVALID_ARG_SIZE;
|
||||
}
|
||||
|
||||
storeKernelArg(argIndexIn, SLM_OBJ, nullptr, argVal, argSize);
|
||||
uint32_t *crossThreadData = reinterpret_cast<uint32_t *>(this->crossThreadData);
|
||||
uint32_t argIndex = argIndexIn;
|
||||
|
||||
Reference in New Issue
Block a user