From 218044577e20e8550718e613a4353aebc01f2e00 Mon Sep 17 00:00:00 2001 From: Michael LIAO Date: Wed, 22 Apr 2020 16:19:05 -0400 Subject: [PATCH] [hip] Fix typos. Change-Id: I9d85d0e70033d144dbd4d61cb434ffbe023af8c0 --- include/hip/hcc_detail/hip_runtime_api.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/hip/hcc_detail/hip_runtime_api.h b/include/hip/hcc_detail/hip_runtime_api.h index 206a2e5835..eb69520894 100644 --- a/include/hip/hcc_detail/hip_runtime_api.h +++ b/include/hip/hcc_detail/hip_runtime_api.h @@ -3854,7 +3854,7 @@ static inline hipError_t hipBindTexture( const void *devPtr, size_t size = UINT_MAX) { - return hipBindTexture(offset, tex, devPtr, tex.channelDesc, size); + return hipBindTexture(offset, &tex, devPtr, tex.channelDesc, size); } template @@ -3898,9 +3898,9 @@ static inline hipError_t hipBindTextureToArray( const struct texture &tex, hipArray_const_t array) { - struct cudaChannelFormatDesc desc; + struct hipChannelFormatDesc desc; hipError_t err = hipGetChannelDesc(&desc, array); - return (err == hipSuccess) ? hipBindTextureToArray(tex, array, desc) : err; + return (err == hipSuccess) ? hipBindTextureToArray(&tex, array, desc) : err; } template @@ -3924,14 +3924,14 @@ static inline hipError_t hipBindTextureToMipmappedArray( return err; } err = hipGetChannelDesc(&desc, levelArray); - return (err == hipSuccess) ? hipBindTextureToMipmappedArray(tex, mipmappedArray, desc) : err; + return (err == hipSuccess) ? hipBindTextureToMipmappedArray(&tex, mipmappedArray, desc) : err; } template static inline hipError_t hipBindTextureToMipmappedArray( const struct texture &tex, hipMipmappedArray_const_t mipmappedArray, - const struct cudaChannelFormatDesc &desc) + const struct hipChannelFormatDesc &desc) { return hipBindTextureToMipmappedArray(&tex, mipmappedArray, &desc); }