From 3296a1c526746615845a4ab01e554778f9bf8697 Mon Sep 17 00:00:00 2001 From: jujiang Date: Thu, 5 Mar 2020 16:50:27 -0500 Subject: [PATCH] SWDEV-225338-simpletexture3D failed-Fix bug in test app Change-Id: I106d1951368e0c7a8ccd6aa462c22f81e8332cdc [ROCm/clr commit: 75c90a4bf1b8af23657519ad8f154c39d7528dd4] --- projects/clr/hipamd/tests/src/texture/simpleTexture3D.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/clr/hipamd/tests/src/texture/simpleTexture3D.cpp b/projects/clr/hipamd/tests/src/texture/simpleTexture3D.cpp index 673e373dcf..569eaf994b 100644 --- a/projects/clr/hipamd/tests/src/texture/simpleTexture3D.cpp +++ b/projects/clr/hipamd/tests/src/texture/simpleTexture3D.cpp @@ -84,10 +84,10 @@ void runTest(int width,int height,int depth,texturechannelDesc; hipArray *arr; - HIPCHECK(hipMalloc3DArray(&arr, &channelDesc, make_hipExtent(width, height, depth), hipArrayCubemap)); + HIPCHECK(hipMalloc3DArray(&arr, &channelDesc, make_hipExtent(width, height, depth), hipArrayDefault)); hipMemcpy3DParms myparms = {0}; myparms.srcPos = make_hipPos(0,0,0); myparms.dstPos = make_hipPos(0,0,0); @@ -100,6 +100,7 @@ void runTest(int width,int height,int depth,textureaddressMode[0] = hipAddressModeWrap; tex->addressMode[1] = hipAddressModeWrap; + tex->addressMode[2] = hipAddressModeWrap; tex->filterMode = hipFilterModePoint; tex->normalized = false;