Correct the definition of ...

hipBindTextureToMipmappedArray()

The texture reference needs to be passed as a constant pointer.

Change-Id: I6d31204c7f2325a5bc1e8b6e089fd9f8d21d1d78


[ROCm/hip commit: c7407a3b57]
Tento commit je obsažen v:
Vladislav Sytchenko
2020-03-17 17:22:17 -04:00
odevzdal Vladislav Sytchenko
rodič b61a7da1ec
revize edc6cd4d87
+2 -2
Zobrazit soubor
@@ -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<hipTextureObject_t*>(&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);