Fix clGetKernelSuggestedLocalWorkSizeINTEL

Related-To: NEO-5456

Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com>
This commit is contained in:
Konstanty Misiak
2021-05-10 16:46:41 +00:00
committed by Compute-Runtime-Automation
parent 754fb1fffc
commit 074fc1d60f
3 changed files with 44 additions and 6 deletions

View File

@@ -5796,7 +5796,10 @@ cl_int CL_API_CALL clGetKernelSuggestedLocalWorkSizeINTEL(cl_command_queue comma
return retVal;
}
if (globalWorkSize == nullptr) {
if (globalWorkSize == nullptr ||
globalWorkSize[0] == 0 ||
(workDim > 1 && globalWorkSize[1] == 0) ||
(workDim > 2 && globalWorkSize[2] == 0)) {
retVal = CL_INVALID_GLOBAL_WORK_SIZE;
return retVal;
}