Correct error value when setting invalid kernel arg

Change-Id: I9719e7ea7b4cf39fae57996528dd56595ee9bfcc
This commit is contained in:
Mateusz Jablonski
2018-04-17 14:21:11 +02:00
committed by sys_ocldev
parent 1a82a6cd8d
commit 350e5fa684
2 changed files with 3 additions and 3 deletions

View File

@@ -2062,7 +2062,7 @@ cl_int Kernel::checkCorrectImageAccessQualifier(cl_uint argIndex,
return CL_INVALID_ARG_VALUE;
}
} else {
return CL_INVALID_VALUE;
return CL_INVALID_ARG_VALUE;
}
}
return CL_SUCCESS;