SWDEV-271096 - Handle depth zero in hipMalloc3D

Change-Id: I0ef0cc825e20b3480e9e5476e09dde5f73cdd3ea
Bu işleme şunda yer alıyor:
agodavar
2021-02-09 08:39:44 -05:00
ebeveyn 7b6244b641
işleme 8f85d89812
+1 -1
Dosyayı Görüntüle
@@ -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;
}