Correct the declaration of hipBindTexture2D()
The texture reference needs to be passed as a constant pointer. Change-Id: Idde461f0f328ac87ce677b6bab3203161b514cbf
This commit is contained in:
committed by
Vladislav Sytchenko
szülő
2d77399747
commit
3e460ab514
@@ -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,
|
||||
|
||||
@@ -457,7 +457,7 @@ hipError_t ihipBindTexture2D(size_t* offset,
|
||||
}
|
||||
|
||||
hipError_t hipBindTexture2D(size_t* offset,
|
||||
textureReference* texref,
|
||||
const textureReference* texref,
|
||||
const void* devPtr,
|
||||
const hipChannelFormatDesc* desc,
|
||||
size_t width,
|
||||
|
||||
Reference in New Issue
Block a user