From 6f93cfe58e590ddbc04ec49cc5c71886380ca108 Mon Sep 17 00:00:00 2001 From: Vladislav Sytchenko Date: Tue, 17 Mar 2020 17:22:17 -0400 Subject: [PATCH] Correct the definition of ... hipBindTextureToMipmappedArray() The texture reference needs to be passed as a constant pointer. Change-Id: I6d31204c7f2325a5bc1e8b6e089fd9f8d21d1d78 [ROCm/clr commit: 9731b61a6078056b7d0794add08196683bf6cca0] --- projects/clr/hipamd/vdi/hip_texture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/clr/hipamd/vdi/hip_texture.cpp b/projects/clr/hipamd/vdi/hip_texture.cpp index 7aa5204424..2e4e118687 100644 --- a/projects/clr/hipamd/vdi/hip_texture.cpp +++ b/projects/clr/hipamd/vdi/hip_texture.cpp @@ -534,7 +534,7 @@ hipError_t ihipBindTextureToArrayImpl(TlsData *tls, HIP_RETURN(ihipBindTextureToArray(texref, array, &desc, readMode)); } -hipError_t ihipBindTextureToMipmappedArray(textureReference* texref, +hipError_t ihipBindTextureToMipmappedArray(const textureReference* texref, hipMipmappedArray_const_t mipmappedArray, const hipChannelFormatDesc* desc, hipTextureReadMode readMode) { @@ -561,7 +561,7 @@ hipError_t ihipBindTextureToMipmappedArray(textureReference* texref, return ihipCreateTextureObject(const_cast(&texref->textureObject), &resDesc, &texDesc, &resViewDesc); } -hipError_t hipBindTextureToMipmappedArray(textureReference* texref, +hipError_t hipBindTextureToMipmappedArray(const textureReference* texref, hipMipmappedArray_const_t mipmappedArray, const hipChannelFormatDesc* desc) { HIP_INIT_API(hipBindTextureToMipmappedArray, texref, mipmappedArray, desc);