diff --git a/api/hip/hip_hcc.def.in b/api/hip/hip_hcc.def.in index a2eade8ae7..51f0bcefe1 100644 --- a/api/hip/hip_hcc.def.in +++ b/api/hip/hip_hcc.def.in @@ -176,6 +176,7 @@ hipBindTexture2D hipBindTextureToArray hipBindTextureToMipmappedArray hipUnbindTexture +ihipUnbindTextureImpl hipGetChannelDesc hipGetTextureAlignmentOffset hipGetTextureReference diff --git a/api/hip/hip_hcc.map.in b/api/hip/hip_hcc.map.in index 378ec5bf80..e9cb1498e9 100644 --- a/api/hip/hip_hcc.map.in +++ b/api/hip/hip_hcc.map.in @@ -189,6 +189,7 @@ global: hipBindTextureToArray*; hipBindTextureToMipmappedArray*; hipUnbindTexture*; + ihipUnbindTextureImpl*; hipGetChannelDesc*; hipGetTextureAlignmentOffset*; hipGetTextureReference*; diff --git a/api/hip/hip_texture.cpp b/api/hip/hip_texture.cpp index 23c1566c09..d0dac5d910 100644 --- a/api/hip/hip_texture.cpp +++ b/api/hip/hip_texture.cpp @@ -526,6 +526,13 @@ hipError_t hipBindTextureToMipmappedArray(textureReference* tex, HIP_RETURN(hipErrorNotSupported); } +hipError_t ihipUnbindTextureImpl(const hipTextureObject_t& textureObject) { + + ihipDestroyTextureObject(reinterpret_cast(textureObject)); + + return hipSuccess; +} + hipError_t hipUnbindTexture(const textureReference* tex) { HIP_INIT_API(NONE, tex);