Fix invalid check in hipTexRefGetAddressMode()

This resolves https://github.com/ROCm-Developer-Tools/HIP/issues/2048.

Change-Id: Iba3653b011434a450a5c3ce10cfd4aa39d318527


[ROCm/clr commit: b848cf085a]
This commit is contained in:
Vlad Sytchenko authored and Vladislav Sytchenko committed 2020-05-03 14:48:32 -04:00
1 parent 895b4a8f5f
commit e637f3f9da
1 file changed
+1 -1
+1 -1
View File
@@ -728,7 +728,7 @@ hipError_t hipTexRefGetAddressMode(hipTextureAddressMode* pam,
}
// Currently, the only valid value for dim are 0 and 1.
if ((dim != 0) || (dim != 1)) {
if ((dim != 0) && (dim != 1)) {
DevLogPrintfError("Currently only 2 dimensions (0,1) are valid,"
"dim : %d \n", dim);
HIP_RETURN(hipErrorInvalidValue);