Move device name to device scope.

Change-Id: If7df4c8f97fa6b0c6f9449ae6802386c639241c2
This commit is contained in:
Mrozek, Michal
2018-06-21 10:47:21 +02:00
committed by sys_ocldev
parent ca87805ba0
commit 3e65a39c62
4 changed files with 9 additions and 8 deletions

View File

@@ -40,7 +40,6 @@
namespace OCLRT {
extern const char *familyName[];
static std::string name(128, '\0');
static std::string vendor = "Intel(R) Corporation";
static std::string profile = "FULL_PROFILE";
static std::string spirVersions = "1.2 ";
@@ -99,17 +98,15 @@ void Device::initializeCaps() {
if (is32bit) {
addressing32bitAllowed = false;
}
std::string tempName = "Intel(R) ";
tempName += familyName[hwInfo.pPlatform->eRenderCoreFamily];
tempName += " HD Graphics NEO";
DEBUG_BREAK_IF(tempName.size() > name.size());
name = tempName;
driverVersion = TOSTR(NEO_DRIVER_VERSION);
name += "Intel(R) ";
name += familyName[hwInfo.pPlatform->eRenderCoreFamily];
name += " HD Graphics NEO";
if (driverInfo) {
name.assign(driverInfo.get()->getDeviceName(tempName).c_str());
name.assign(driverInfo.get()->getDeviceName(name).c_str());
driverVersion.assign(driverInfo.get()->getVersion(driverVersion).c_str());
}