SWDEV-508966 - hipGetTextureAlignmentOffset return hipErrorInvalidTexture (#389)
[ROCm/clr commit: 7aae33951b]
Cette révision appartient à :
révisé par
GitHub
Parent
5d4ae6346e
révision
983a5925c6
@@ -785,7 +785,11 @@ hipError_t hipGetTextureAlignmentOffset(size_t* offset,
|
||||
const textureReference* texref) {
|
||||
HIP_INIT_API(hipGetTextureAlignmentOffset, offset, texref);
|
||||
|
||||
if ((offset == nullptr) || (texref == nullptr)) {
|
||||
if (texref == nullptr) {
|
||||
HIP_RETURN(hipErrorInvalidTexture);
|
||||
}
|
||||
|
||||
if (offset == nullptr) {
|
||||
HIP_RETURN(hipErrorInvalidValue);
|
||||
}
|
||||
amd::Device* device = hip::getCurrentDevice()->devices()[0];
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur