From 127e56e482b50e366be2302a1e0a689472a9f05f 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/hip commit: c5aa54cbd24a7aa3cdc9265ea639d55f4b457918] --- projects/hip/tests/src/texture/simpleTexture3D.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/hip/tests/src/texture/simpleTexture3D.cpp b/projects/hip/tests/src/texture/simpleTexture3D.cpp index 673e373dcf..569eaf994b 100644 --- a/projects/hip/tests/src/texture/simpleTexture3D.cpp +++ b/projects/hip/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;