SWDEV-541623 - cuda parity hipTexObjectCreate when Array is null (#734)

Этот коммит содержится в:
GunaShekar, Ajay
2025-08-15 12:35:33 -07:00
коммит произвёл GitHub
родитель be73d024e2
Коммит 54e592beec
+4 -1
Просмотреть файл
@@ -123,7 +123,10 @@ hipError_t ihipCreateTextureObject(hipTextureObject_t* pTexObject,
LogInfo("Mipmap not supported on the device");
return hipErrorNotSupported;
}
if (pResDesc->res.mipmap.mipmap == nullptr || pTexDesc->normalizedCoords == 0) {
if (pResDesc->res.mipmap.mipmap == nullptr) {
return hipErrorInvalidValue;
}
if (pTexDesc->normalizedCoords == 0) {
return hipErrorInvalidChannelDescriptor;
}
}