SWDEV-271096 - Handle depth zero in hipMalloc3D

Change-Id: I0ef0cc825e20b3480e9e5476e09dde5f73cdd3ea


[ROCm/clr commit: 8f85d89812]
Tento commit je obsažen v:
agodavar
2021-02-09 08:39:44 -05:00
rodič 3de1a22c48
revize 390565d4b7
+1 -1
Zobrazit soubor
@@ -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;
}