Revert "SWDEV-441296 - Allign hipTexObjectCreate error handling to CUDA"
This reverts commit 7d3c0c5e10.
Changing the error code is considered as a breaking change,
so it should be done in major releases only.
The other reason for reverting the commit is that this change itself
is incorrect. Cuda behaves in the same way as hip when
pResDesc or pTexDesc are nullptr.
Change-Id: I3abee6b79279b81ab01c7f8466c7f8e3776c4109
Этот коммит содержится в:
@@ -1521,12 +1521,8 @@ hipError_t hipTexObjectCreate(hipTextureObject_t* pTexObject,
|
||||
const HIP_RESOURCE_VIEW_DESC* pResViewDesc) {
|
||||
HIP_INIT_API(hipTexObjectCreate, pTexObject, pResDesc, pTexDesc, pResViewDesc);
|
||||
|
||||
if (pTexObject == nullptr) {
|
||||
HIP_RETURN(hipErrorNotInitialized);
|
||||
}
|
||||
|
||||
if (pResDesc == nullptr || pTexDesc == nullptr) {
|
||||
HIP_RETURN(hipErrorInvalidContext);
|
||||
if ((pTexObject == nullptr) || (pResDesc == nullptr) || (pTexDesc == nullptr)) {
|
||||
HIP_RETURN(hipErrorInvalidValue);
|
||||
}
|
||||
|
||||
hipResourceDesc resDesc = hip::getResourceDesc(*pResDesc);
|
||||
|
||||
Ссылка в новой задаче
Block a user