mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Move device name to device scope.
Change-Id: If7df4c8f97fa6b0c6f9449ae6802386c639241c2
This commit is contained in:
committed by
sys_ocldev
parent
ca87805ba0
commit
3e65a39c62
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user