mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
Correct error value when setting invalid kernel arg
Change-Id: I9719e7ea7b4cf39fae57996528dd56595ee9bfcc
This commit is contained in:
committed by
sys_ocldev
parent
1a82a6cd8d
commit
350e5fa684
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user