SWDEV-223394 - Pass module info from hipModuleGetTexRef to internal Platformstate:: functions.
Change-Id: I7d1ba3f940f595c3fca74a57fa20f484c52d4741
Tá an tiomantas seo le fáil i:
Rialta → Inrite
+2
-2
@@ -351,9 +351,9 @@ bool PlatformState::getFuncAttr(const void* hostFunction,
|
||||
return true;
|
||||
}
|
||||
|
||||
bool PlatformState::getTexRef(const char* hostVar, textureReference** texRef) {
|
||||
bool PlatformState::getTexRef(const char* hostVar, hipModule_t hmod, textureReference** texRef) {
|
||||
amd::ScopedLock lock(lock_);
|
||||
DeviceVar* dvar = findVar(std::string(hostVar), ihipGetDevice(), nullptr);
|
||||
DeviceVar* dvar = findVar(std::string(hostVar), ihipGetDevice(), hmod);
|
||||
if (dvar == nullptr) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir