200~SWDEV-333583 : hipMallocArray bad channel format
- channel format should be consistent accross parameters Signed-off-by: sdashmiz <shadi.dashmiz@amd.com> Change-Id: I1e7680ab9262a66e7bea4aaa21f061044b0f7956
This commit is contained in:
@@ -954,7 +954,9 @@ hipError_t hipMallocArray(hipArray** array,
|
||||
hip::getArrayFormat(*desc),
|
||||
hip::getNumChannels(*desc),
|
||||
flags};
|
||||
|
||||
if(!hip::CheckArrayFormat(*desc)) {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
HIP_RETURN(ihipArrayCreate(array, &allocateArray, 0 /* numMipLevels */));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user