Merge "[vdi] Skip null texture object in hipDestroyTextureObject." into amd-master-next
[ROCm/hip commit: 61932e1785]
Этот коммит содержится в:
коммит произвёл
Gerrit Code Review
Коммит
7540dbc29c
@@ -312,7 +312,7 @@ hipError_t hipCreateTextureObject(hipTextureObject_t* pTexObject,
|
||||
|
||||
hipError_t ihipDestroyTextureObject(hipTextureObject_t texObject) {
|
||||
if (texObject == nullptr) {
|
||||
return hipErrorInvalidValue;
|
||||
return hipSuccess;
|
||||
}
|
||||
|
||||
const hipResourceType type = texObject->resDesc.resType;
|
||||
|
||||
Ссылка в новой задаче
Block a user