From 313cdfd49443f9f15ddda4dbd431f0a1275155f7 Mon Sep 17 00:00:00 2001 From: lthakur Date: Wed, 1 Aug 2018 10:41:30 +0530 Subject: [PATCH] Added offset value verification. Added offset value verification. [ROCm/clr commit: b7a4b2c3007482ad333d7a2d56b260f9f3cf77f3] --- .../clr/hipamd/tests/src/texture/hipGetAlgntoffset2D.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/clr/hipamd/tests/src/texture/hipGetAlgntoffset2D.cpp b/projects/clr/hipamd/tests/src/texture/hipGetAlgntoffset2D.cpp index 2343d7a7fb..3a4cc7dfc8 100644 --- a/projects/clr/hipamd/tests/src/texture/hipGetAlgntoffset2D.cpp +++ b/projects/clr/hipamd/tests/src/texture/hipGetAlgntoffset2D.cpp @@ -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; }