Correct the definition of ...
hipBindTextureToMipmappedArray()
The texture reference needs to be passed as a constant pointer.
Change-Id: I6d31204c7f2325a5bc1e8b6e089fd9f8d21d1d78
[ROCm/hip commit: c7407a3b57]
Tento commit je obsažen v:
odevzdal
Vladislav Sytchenko
rodič
b61a7da1ec
revize
edc6cd4d87
@@ -534,7 +534,7 @@ hipError_t ihipBindTextureToArrayImpl(TlsData *tls,
|
||||
HIP_RETURN(ihipBindTextureToArray(texref, array, &desc, readMode));
|
||||
}
|
||||
|
||||
hipError_t ihipBindTextureToMipmappedArray(textureReference* texref,
|
||||
hipError_t ihipBindTextureToMipmappedArray(const textureReference* texref,
|
||||
hipMipmappedArray_const_t mipmappedArray,
|
||||
const hipChannelFormatDesc* desc,
|
||||
hipTextureReadMode readMode) {
|
||||
@@ -561,7 +561,7 @@ hipError_t ihipBindTextureToMipmappedArray(textureReference* texref,
|
||||
return ihipCreateTextureObject(const_cast<hipTextureObject_t*>(&texref->textureObject), &resDesc, &texDesc, &resViewDesc);
|
||||
}
|
||||
|
||||
hipError_t hipBindTextureToMipmappedArray(textureReference* texref,
|
||||
hipError_t hipBindTextureToMipmappedArray(const textureReference* texref,
|
||||
hipMipmappedArray_const_t mipmappedArray,
|
||||
const hipChannelFormatDesc* desc) {
|
||||
HIP_INIT_API(hipBindTextureToMipmappedArray, texref, mipmappedArray, desc);
|
||||
|
||||
Odkázat v novém úkolu
Zablokovat Uživatele