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); }