From edc6cd4d871eabf27aafd173f9d5958decb30293 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/hip commit: c7407a3b57dad97aa568743f84fd5c0edba9f312] --- projects/hip/vdi/hip_texture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/hip/vdi/hip_texture.cpp b/projects/hip/vdi/hip_texture.cpp index 7aa5204424..2e4e118687 100644 --- a/projects/hip/vdi/hip_texture.cpp +++ b/projects/hip/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);