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:
sdashmiz
2022-04-25 12:52:35 -04:00
committed by Shadi Dashmiz
parent f68149eafd
commit 8ed471f210
2 changed files with 21 additions and 1 deletions
+3 -1
View File
@@ -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 */));
}