Added offset value verification.

Added offset value verification.
This commit is contained in:
lthakur authored and GitHub committed 2018-08-01 10:41:30 +05:30
1 parent cac0f2cc95
commit b7a4b2c300
1 file changed
+4 -1
@@ -71,5 +71,8 @@ HIPCHECK(hipBindTextureToArray(&tex, hipArray, &chan_desc));
HIPCHECK(hipGetTextureAlignmentOffset(&offset,&tex));
HIPCHECK(hipUnbindTexture(&tex));
HIPCHECK(hipFreeArray(hipArray));
return true;
if(offset != 0)
return false;
else
return true;
}