Merge "Start the lifetime of the texture reference" into amd-master-next

[ROCm/hip commit: 816a56a70b]
Esse commit está contido em:
Vladislav Sytchenko authored and Gerrit Code Review committed 2020-03-18 18:07:24 -04:00
commit 67e8b8bcd2
2 files changed
+6 -1

No files matched your search

+4
Ver Arquivo
@@ -528,6 +528,10 @@ hipError_t hipModuleGetTexRef(textureReference** texRef, hipModule_t hmod, const
HIP_RETURN(hipErrorNotFound);
}
// Texture references created by HIP driver API
// have the default read mode set to normalized float.
(*texRef)->readMode = hipReadModeNormalizedFloat;
HIP_RETURN(hipSuccess);
}
+2 -1
Ver Arquivo
@@ -361,7 +361,8 @@ bool PlatformState::getTexRef(const char* hostVar, hipModule_t hmod, textureRefe
return false;
}
*texRef = reinterpret_cast<textureReference *>(dvar->shadowVptr);
*texRef = new (dvar->shadowVptr) texture<char>{};
return true;
}