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

此提交包含在:
Vladislav Sytchenko
2020-03-18 18:07:24 -04:00
提交者 Gerrit Code Review
當前提交 da5f852cdd
共有 2 個檔案被更改,包括 6 行新增1 行删除
+4
查看文件
@@ -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
查看文件
@@ -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;
}