Correct the declaration of hipBindTexture()
The texture reference needs to be passed as a constant pointer. Change-Id: I36ca0bddaba30becfc2ce70dd9e5b7db66c57f27
Αυτή η υποβολή περιλαμβάνεται σε:
υποβλήθηκε από
Vladislav Sytchenko
γονέας
6ff0d15a62
υποβολή
600b1006c8
@@ -3362,8 +3362,17 @@ const char* hipKernelNameRef(const hipFunction_t f);
|
|||||||
|
|
||||||
class TlsData;
|
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,
|
hipError_t hipBindTexture(size_t* offset, textureReference* tex, const void* devPtr,
|
||||||
const hipChannelFormatDesc* desc, size_t size = UINT_MAX);
|
const hipChannelFormatDesc* desc, size_t size = UINT_MAX);
|
||||||
|
#endif
|
||||||
|
|
||||||
hipError_t ihipBindTextureImpl(TlsData *tls, int dim, enum hipTextureReadMode readMode, size_t* offset,
|
hipError_t ihipBindTextureImpl(TlsData *tls, int dim, enum hipTextureReadMode readMode, size_t* offset,
|
||||||
const void* devPtr, const struct hipChannelFormatDesc* desc,
|
const void* devPtr, const struct hipChannelFormatDesc* desc,
|
||||||
|
|||||||
@@ -607,7 +607,7 @@ hipError_t hipUnbindTexture(const textureReference* texref) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hipError_t hipBindTexture(size_t* offset,
|
hipError_t hipBindTexture(size_t* offset,
|
||||||
textureReference* texref,
|
const textureReference* texref,
|
||||||
const void* devPtr,
|
const void* devPtr,
|
||||||
const hipChannelFormatDesc* desc,
|
const hipChannelFormatDesc* desc,
|
||||||
size_t size) {
|
size_t size) {
|
||||||
|
|||||||
Αναφορά σε νέο ζήτημα
Block a user