SWDEV-229840 - fixing return HIP_RETURN instances in hip.

Change-Id: I48763d7268bf5649bf2242c962c185f5f4af159c


[ROCm/hip commit: aae3e13296]
This commit is contained in:
kjayapra-amd
2020-05-28 20:18:16 -04:00
committed by Karthik Jayaprakash
parent cddd09b85d
commit 6d2ec4c700
4 changed files with 20 additions and 20 deletions
+4 -4
View File
@@ -772,7 +772,7 @@ hipError_t hipTexRefGetArray(hipArray_t* pArray,
// TODO use ihipGetTextureObjectResourceDesc() to not pollute the API trace.
hipError_t error = hipGetTextureObjectResourceDesc(&resDesc, texRef->textureObject);
if (error != hipSuccess) {
return HIP_RETURN(error);
HIP_RETURN(error);
}
switch (resDesc.resType) {
@@ -848,7 +848,7 @@ hipError_t hipTexRefGetAddress(hipDeviceptr_t* dptr,
if (error != hipSuccess) {
DevLogPrintfError("hipGetTextureObjectResourceDesc failed with error code: %s \n",
hipGetErrorName(error));
return HIP_RETURN(error);
HIP_RETURN(error);
}
switch (resDesc.resType) {
@@ -903,7 +903,7 @@ hipError_t hipTexRefSetAddress(size_t* ByteOffset,
// Align the user ptr to HW requirments.
resDesc.res.linear.devPtr = static_cast<char*>(dptr) - *ByteOffset;
} else {
return HIP_RETURN(hipErrorInvalidValue);
HIP_RETURN(hipErrorInvalidValue);
}
hipTextureDesc texDesc = hip::getTextureDesc(texRef);
@@ -1108,7 +1108,7 @@ hipError_t hipTexRefGetMipmappedArray(hipMipmappedArray_t* pArray,
// TODO use ihipGetTextureObjectResourceDesc() to not pollute the API trace.
hipError_t error = hipGetTextureObjectResourceDesc(&resDesc, texRef->textureObject);
if (error != hipSuccess) {
return HIP_RETURN(error);
HIP_RETURN(error);
}
switch (resDesc.resType) {