Fix invalid check in hipTexRefGetAddressMode()
This resolves https://github.com/ROCm-Developer-Tools/HIP/issues/2048.
Change-Id: Iba3653b011434a450a5c3ce10cfd4aa39d318527
[ROCm/hip commit: dcd466773b]
This commit is contained in:
committed by
Vladislav Sytchenko
parent
c312f36eda
commit
c46937d1cf
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user