mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
Change error code from CL_INVALID_VALUE to CL_SUCCESSS
when image are not suppoorted Change-Id: I8350558ada1ab048b02b68cb372a22fdadf8c2f5 Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
b28e3fcad8
commit
541e161898
@@ -1016,7 +1016,10 @@ cl_int CL_API_CALL clGetSupportedImageFormats(cl_context context,
|
||||
retVal = pContext->getSupportedImageFormats(&pClDevice->getDevice(), flags, imageType, numEntries,
|
||||
imageFormats, numImageFormats);
|
||||
} else {
|
||||
retVal = CL_INVALID_VALUE;
|
||||
if (numImageFormats) {
|
||||
*numImageFormats = 0u;
|
||||
}
|
||||
retVal = CL_SUCCESS;
|
||||
}
|
||||
} else {
|
||||
retVal = CL_INVALID_CONTEXT;
|
||||
|
||||
Reference in New Issue
Block a user