Correct the declaration of hipBindTextureToArray()

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

Change-Id: Iff171626536071fb2020cfff7132ec930577b1b9
Tá an tiomantas seo le fáil i:
Vladislav Sytchenko údaraithe agus Vladislav Sytchenko tiomanta 2020-03-18 18:08:13 -04:00
1 tuismitheoir 7190fa518e
tiomantas 2d77399747
2 comhad athraithe
+8 -1

Níor tháinig aon chomhaid le do chuardach

+7
Féach ar an gComhad
@@ -3443,8 +3443,15 @@ hipError_t hipBindTexture2D(size_t* offset, struct texture<T, dim, readMode>& te
}
// C API
#if __HIP_VDI__
hipError_t hipBindTextureToArray(
const textureReference* tex,
hipArray_const_t array,
const hipChannelFormatDesc* desc);
#else
hipError_t hipBindTextureToArray(textureReference* tex, hipArray_const_t array,
const hipChannelFormatDesc* desc);
#endif
hipError_t ihipBindTextureToArrayImpl(TlsData *tls, int dim, enum hipTextureReadMode readMode,
hipArray_const_t array,
+1 -1
Féach ar an gComhad
@@ -496,7 +496,7 @@ hipError_t ihipBindTextureToArray(const textureReference* texref,
return ihipCreateTextureObject(const_cast<hipTextureObject_t*>(&texref->textureObject), &resDesc, &texDesc, &resViewDesc);
}
hipError_t hipBindTextureToArray(textureReference* texref,
hipError_t hipBindTextureToArray(const textureReference* texref,
hipArray_const_t array,
const hipChannelFormatDesc* desc) {
HIP_INIT_API(hipBindTextureToArray, texref, array, desc);