SWDEV-271096 - Handle depth zero in hipMalloc3D
Change-Id: I0ef0cc825e20b3480e9e5476e09dde5f73cdd3ea
[ROCm/clr commit: 8f85d89812]
Tento commit je obsažen v:
@@ -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;
|
||||
}
|
||||
|
||||
Odkázat v novém úkolu
Zablokovat Uživatele