Re-sync with upstream and re-factor platform global management for texture references.

This commit is contained in:
Alex Voicu
2017-11-28 19:15:29 +00:00
vanhempi dc67ca3feb
commit 02c2bfc7ef
3 muutettua tiedostoa jossa 19 lisäystä ja 15 poistoa
+3 -3
Näytä tiedosto
@@ -725,9 +725,9 @@ hipError_t hipModuleGetTexRef(textureReference** texRef, hipModule_t hmod, const
if(name == NULL || hmod == NULL){
ret = hipErrorNotInitialized;
} else{
const auto it = hmod->coGlobals.find(name);
if (it == hmod->coGlobals.end()) return ihipLogStatus(hipErrorInvalidValue);
*texRef = reinterpret_cast<textureReference*>(it->second);
const auto it = hip_impl::globals().find(name);
if (it == hip_impl::globals().end()) return ihipLogStatus(hipErrorInvalidValue);
*texRef = reinterpret_cast<textureReference*>(it->second.get());
ret = hipSuccess;
}
}