SWDEV-271096 - Handle depth zero in hipMalloc3D
Change-Id: I0ef0cc825e20b3480e9e5476e09dde5f73cdd3ea
Bu işleme şunda yer alıyor:
@@ -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;
|
||||
}
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle