Remove unused function

Related-To: NEO-3503

Change-Id: I787907e73f1237295594d3a2620f8459f8698eee
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2019-07-24 15:28:10 +02:00
committed by sys_ocldev
parent bea29f18c9
commit 4410ebe74d
6 changed files with 3 additions and 22 deletions

View File

@ -244,7 +244,7 @@ int OfflineCompiler::getHardwareInfo(const char *pDeviceName) {
hwInfo = hardwareInfoTable[productId]; hwInfo = hardwareInfoTable[productId];
familyNameWithType.clear(); familyNameWithType.clear();
familyNameWithType.append(familyName[hwInfo->platform.eRenderCoreFamily]); familyNameWithType.append(familyName[hwInfo->platform.eRenderCoreFamily]);
familyNameWithType.append(getPlatformType(*hwInfo)); familyNameWithType.append(hwInfo->capabilityTable.platformType);
retVal = CL_SUCCESS; retVal = CL_SUCCESS;
break; break;
} }

View File

@ -222,7 +222,7 @@ const char *Device::getProductAbbrev() const {
const std::string Device::getFamilyNameWithType() const { const std::string Device::getFamilyNameWithType() const {
auto &hwInfo = getHardwareInfo(); auto &hwInfo = getHardwareInfo();
std::string platformName = familyName[hwInfo.platform.eRenderCoreFamily]; std::string platformName = familyName[hwInfo.platform.eRenderCoreFamily];
platformName.append(getPlatformType(hwInfo)); platformName.append(hwInfo.capabilityTable.platformType);
return platformName; return platformName;
} }

View File

@ -24,10 +24,6 @@ void (*hardwareInfoSetup[IGFX_MAX_PRODUCT])(HardwareInfo *, bool, const std::str
nullptr, nullptr,
}; };
const char *getPlatformType(const HardwareInfo &hwInfo) {
return hwInfo.capabilityTable.platformType;
}
bool getHwInfoForPlatformString(std::string &platform, const HardwareInfo *&hwInfoIn) { bool getHwInfoForPlatformString(std::string &platform, const HardwareInfo *&hwInfoIn) {
std::transform(platform.begin(), platform.end(), platform.begin(), ::tolower); std::transform(platform.begin(), platform.end(), platform.begin(), ::tolower);

View File

@ -99,7 +99,6 @@ struct EnableGfxFamilyHw {
} }
}; };
const char *getPlatformType(const HardwareInfo &hwInfo);
bool getHwInfoForPlatformString(std::string &platform, const HardwareInfo *&hwInfoIn); bool getHwInfoForPlatformString(std::string &platform, const HardwareInfo *&hwInfoIn);
aub_stream::EngineType getChosenEngineType(const HardwareInfo &hwInfo); aub_stream::EngineType getChosenEngineType(const HardwareInfo &hwInfo);
} // namespace NEO } // namespace NEO

View File

@ -229,20 +229,6 @@ HWTEST_F(PipeControlHelperTests, givenPostSyncWriteImmediateDataModeWhenHelperIs
EXPECT_TRUE(memcmp(pipeControl, &expectedPipeControl, sizeof(PIPE_CONTROL)) == 0); EXPECT_TRUE(memcmp(pipeControl, &expectedPipeControl, sizeof(PIPE_CONTROL)) == 0);
} }
TEST(HwInfoTest, givenHwInfoWhenPlatformTypeIsCoreThenPlatformTypeIsCore) {
HardwareInfo hwInfo;
hwInfo.capabilityTable.platformType = "core";
auto platformType = getPlatformType(hwInfo);
EXPECT_STREQ("core", platformType);
}
TEST(HwInfoTest, givenHwInfoWhenlatformTypeIsLpThenPlatformTypeIsLp) {
HardwareInfo hwInfo;
hwInfo.capabilityTable.platformType = "lp";
auto platformType = getPlatformType(hwInfo);
EXPECT_STREQ("lp", platformType);
}
TEST(HwInfoTest, givenHwInfoWhenChosenEngineTypeQueriedThenDefaultIsReturned) { TEST(HwInfoTest, givenHwInfoWhenChosenEngineTypeQueriedThenDefaultIsReturned) {
HardwareInfo hwInfo; HardwareInfo hwInfo;
hwInfo.capabilityTable.defaultEngineType = aub_stream::ENGINE_RCS; hwInfo.capabilityTable.defaultEngineType = aub_stream::ENGINE_RCS;

View File

@ -343,7 +343,7 @@ int main(int argc, char **argv) {
device.capabilityTable.supportsImages = true; device.capabilityTable.supportsImages = true;
binaryNameSuffix.append(familyName[device.platform.eRenderCoreFamily]); binaryNameSuffix.append(familyName[device.platform.eRenderCoreFamily]);
binaryNameSuffix.append(getPlatformType(device)); binaryNameSuffix.append(device.capabilityTable.platformType);
std::string nBinaryKernelFiles = getRunPath(argv[0]); std::string nBinaryKernelFiles = getRunPath(argv[0]);
nBinaryKernelFiles.append("/"); nBinaryKernelFiles.append("/");