SWDEV-271096 - Handle depth zero in hipMalloc3D

Change-Id: I0ef0cc825e20b3480e9e5476e09dde5f73cdd3ea
This commit is contained in:
agodavar
2021-02-09 08:39:44 -05:00
orang tua 1770e8a160
melakukan c149c88fa1
+1 -1
Melihat File
@@ -421,7 +421,7 @@ hipError_t ihipMallocPitch(void** ptr, size_t* pitch, size_t width, size_t heigh
return hipErrorInvalidValue;
}
if ((width == 0) || (height == 0)) {
if ((width == 0) || (height == 0) || (depth == 0)) {
*ptr = nullptr;
return hipSuccess;
}