SWDEV-508966 - hipGetTextureAlignmentOffset return hipErrorInvalidTexture (#389)

[ROCm/clr commit: 7aae33951b]
Cette révision appartient à :
Belton-Schure, Aidan
2025-05-22 18:49:45 +01:00
révisé par GitHub
Parent 5d4ae6346e
révision 983a5925c6
+5 -1
Voir le fichier
@@ -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];