SWDEV-541623 - cuda parity hipTexObjectCreate when Array is null (#734)
[ROCm/clr commit: 54e592beec]
This commit is contained in:
1 förälder
4e4caf3ff8
incheckning
daa2814cf3
1 file changed
+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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user