SWDEV-353548 - assert with different behavior for Release vs Debug

assert statement behavior
-Debug: crashes tests with SIGABORT
-Release: continues silently without

Change-Id: I7578eb16a7391ff7f9d68f1cae3bcea7f8225579
This commit is contained in:
Ajay
2022-09-21 19:50:06 +00:00
committed by Ajay GunaShekar
parent 7ef4eada54
commit be80bf5406
4 changed files with 19 additions and 32 deletions
+3 -4
View File
@@ -248,10 +248,9 @@ hipError_t ihipCreateTextureObject(hipTextureObject_t* pTexObject,
}
break;
}
case hipResourceTypeMipmappedArray: {
ShouldNotReachHere();
break;
}
case hipResourceTypeMipmappedArray:
return hipErrorInvalidValue;
case hipResourceTypeLinear: {
const cl_channel_order channelOrder = hip::getCLChannelOrder(hip::getNumChannels(pResDesc->res.linear.desc), pTexDesc->sRGB);
const cl_channel_type channelType = hip::getCLChannelType(hip::getArrayFormat(pResDesc->res.linear.desc), pTexDesc->readMode);