Correct the declaration of hipBindTexture2D()

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

Change-Id: Idde461f0f328ac87ce677b6bab3203161b514cbf
Tá an tiomantas seo le fáil i:
Vladislav Sytchenko údaraithe agus Vladislav Sytchenko tiomanta 2020-03-18 18:08:23 -04:00
1 tuismitheoir 2d77399747
tiomantas 3e460ab514
2 comhad athraithe
+12 -1

Níor tháinig aon chomhaid le do chuardach

+11
Féach ar an gComhad
@@ -3420,9 +3420,20 @@ hipError_t hipBindTexture(size_t* offset, struct texture<T, dim, readMode>& tex,
}
// C API
#if __HIP_VDI__
hipError_t hipBindTexture2D(
size_t* offset,
const textureReference* tex,
const void* devPtr,
const hipChannelFormatDesc* desc,
size_t width,
size_t height,
size_t pitch);
#else
hipError_t hipBindTexture2D(size_t* offset, textureReference* tex, const void* devPtr,
const hipChannelFormatDesc* desc, size_t width, size_t height,
size_t pitch);
#endif
hipError_t ihipBindTexture2DImpl(int dim, enum hipTextureReadMode readMode, size_t* offset,
const void* devPtr, const struct hipChannelFormatDesc* desc,