Correct the declaration of hipBindTexture()

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

Change-Id: I36ca0bddaba30becfc2ce70dd9e5b7db66c57f27
Tá an tiomantas seo le fáil i:
Vladislav Sytchenko údaraithe agus Vladislav Sytchenko tiomanta 2020-03-18 18:08:01 -04:00
1 tuismitheoir 551bcc6293
tiomantas 7190fa518e
2 comhad athraithe
+10 -1

Níor tháinig aon chomhaid le do chuardach

+9
Féach ar an gComhad
@@ -3362,8 +3362,17 @@ const char* hipKernelNameRef(const hipFunction_t f);
class TlsData;
#if __HIP_VDI__
hipError_t hipBindTexture(
size_t* offset,
const textureReference* tex,
const void* devPtr,
const hipChannelFormatDesc* desc,
size_t size = UINT_MAX);
#else
hipError_t hipBindTexture(size_t* offset, textureReference* tex, const void* devPtr,
const hipChannelFormatDesc* desc, size_t size = UINT_MAX);
#endif
hipError_t ihipBindTextureImpl(TlsData *tls, int dim, enum hipTextureReadMode readMode, size_t* offset,
const void* devPtr, const struct hipChannelFormatDesc* desc,