From e74d2cff3fec369c49fecdc6e336ad8feebc5420 Mon Sep 17 00:00:00 2001 From: Anusha Godavarthy Surya Date: Tue, 15 Oct 2019 11:34:15 +0530 Subject: [PATCH] Added unbind texture to samples and tests [ROCm/hip commit: d5b1e887e9c9b0e0f6a174e7f188bb52514527b7] --- .../hip/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp | 1 + projects/hip/tests/src/texture/hipTextureRef2D.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/projects/hip/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp b/projects/hip/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp index 2cb9877cac..0aa9ef2913 100644 --- a/projects/hip/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp +++ b/projects/hip/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp @@ -124,6 +124,7 @@ bool runTest(int argc, char** argv) { } } } + hipUnbindTexture(tex); hipFree(dData); hipFreeArray(array); return true; diff --git a/projects/hip/tests/src/texture/hipTextureRef2D.cpp b/projects/hip/tests/src/texture/hipTextureRef2D.cpp index 2fb4097b0a..b476ae8062 100644 --- a/projects/hip/tests/src/texture/hipTextureRef2D.cpp +++ b/projects/hip/tests/src/texture/hipTextureRef2D.cpp @@ -90,6 +90,7 @@ int runTest(int argc, char** argv) { } } } + HIPCHECK(hipUnbindTexture(tex)); hipFree(dData); hipFreeArray(hipArray); return testResult;