mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Move HardwareInfo ownership to ExecutionEnvironment [1/n]
Change-Id: I5e5b4cc45947a8841282c7d431fb69d9c397a2d4 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
b2aee82f41
commit
bb80d327c7
@ -237,7 +237,7 @@ int OfflineCompiler::getHardwareInfo(const char *pDeviceName) {
|
||||
if (hardwareInfoTable[productId]) {
|
||||
hwInfo = hardwareInfoTable[productId];
|
||||
familyNameWithType.clear();
|
||||
familyNameWithType.append(familyName[hwInfo->pPlatform->eRenderCoreFamily]);
|
||||
familyNameWithType.append(familyName[hwInfo->pPlatform.eRenderCoreFamily]);
|
||||
familyNameWithType.append(getPlatformType(*hwInfo));
|
||||
retVal = CL_SUCCESS;
|
||||
break;
|
||||
@ -394,39 +394,39 @@ int OfflineCompiler::initialize(size_t numArgs, const char *const *argv) {
|
||||
if ((igcPlatform == nullptr) || (igcGtSystemInfo == nullptr) || (igcFeWa == nullptr)) {
|
||||
return CL_OUT_OF_HOST_MEMORY;
|
||||
}
|
||||
IGC::PlatformHelper::PopulateInterfaceWith(*igcPlatform.get(), *hwInfo->pPlatform);
|
||||
IGC::GtSysInfoHelper::PopulateInterfaceWith(*igcGtSystemInfo.get(), *hwInfo->pSysInfo);
|
||||
IGC::PlatformHelper::PopulateInterfaceWith(*igcPlatform.get(), hwInfo->pPlatform);
|
||||
IGC::GtSysInfoHelper::PopulateInterfaceWith(*igcGtSystemInfo.get(), hwInfo->pSysInfo);
|
||||
// populate with features
|
||||
igcFeWa.get()->SetFtrDesktop(hwInfo->pSkuTable->ftrDesktop);
|
||||
igcFeWa.get()->SetFtrChannelSwizzlingXOREnabled(hwInfo->pSkuTable->ftrChannelSwizzlingXOREnabled);
|
||||
igcFeWa.get()->SetFtrDesktop(hwInfo->pSkuTable.ftrDesktop);
|
||||
igcFeWa.get()->SetFtrChannelSwizzlingXOREnabled(hwInfo->pSkuTable.ftrChannelSwizzlingXOREnabled);
|
||||
|
||||
igcFeWa.get()->SetFtrGtBigDie(hwInfo->pSkuTable->ftrGtBigDie);
|
||||
igcFeWa.get()->SetFtrGtMediumDie(hwInfo->pSkuTable->ftrGtMediumDie);
|
||||
igcFeWa.get()->SetFtrGtSmallDie(hwInfo->pSkuTable->ftrGtSmallDie);
|
||||
igcFeWa.get()->SetFtrGtBigDie(hwInfo->pSkuTable.ftrGtBigDie);
|
||||
igcFeWa.get()->SetFtrGtMediumDie(hwInfo->pSkuTable.ftrGtMediumDie);
|
||||
igcFeWa.get()->SetFtrGtSmallDie(hwInfo->pSkuTable.ftrGtSmallDie);
|
||||
|
||||
igcFeWa.get()->SetFtrGT1(hwInfo->pSkuTable->ftrGT1);
|
||||
igcFeWa.get()->SetFtrGT1_5(hwInfo->pSkuTable->ftrGT1_5);
|
||||
igcFeWa.get()->SetFtrGT2(hwInfo->pSkuTable->ftrGT2);
|
||||
igcFeWa.get()->SetFtrGT3(hwInfo->pSkuTable->ftrGT3);
|
||||
igcFeWa.get()->SetFtrGT4(hwInfo->pSkuTable->ftrGT4);
|
||||
igcFeWa.get()->SetFtrGT1(hwInfo->pSkuTable.ftrGT1);
|
||||
igcFeWa.get()->SetFtrGT1_5(hwInfo->pSkuTable.ftrGT1_5);
|
||||
igcFeWa.get()->SetFtrGT2(hwInfo->pSkuTable.ftrGT2);
|
||||
igcFeWa.get()->SetFtrGT3(hwInfo->pSkuTable.ftrGT3);
|
||||
igcFeWa.get()->SetFtrGT4(hwInfo->pSkuTable.ftrGT4);
|
||||
|
||||
igcFeWa.get()->SetFtrIVBM0M1Platform(hwInfo->pSkuTable->ftrIVBM0M1Platform);
|
||||
igcFeWa.get()->SetFtrGTL(hwInfo->pSkuTable->ftrGT1);
|
||||
igcFeWa.get()->SetFtrGTM(hwInfo->pSkuTable->ftrGT2);
|
||||
igcFeWa.get()->SetFtrGTH(hwInfo->pSkuTable->ftrGT3);
|
||||
igcFeWa.get()->SetFtrIVBM0M1Platform(hwInfo->pSkuTable.ftrIVBM0M1Platform);
|
||||
igcFeWa.get()->SetFtrGTL(hwInfo->pSkuTable.ftrGT1);
|
||||
igcFeWa.get()->SetFtrGTM(hwInfo->pSkuTable.ftrGT2);
|
||||
igcFeWa.get()->SetFtrGTH(hwInfo->pSkuTable.ftrGT3);
|
||||
|
||||
igcFeWa.get()->SetFtrSGTPVSKUStrapPresent(hwInfo->pSkuTable->ftrSGTPVSKUStrapPresent);
|
||||
igcFeWa.get()->SetFtrGTA(hwInfo->pSkuTable->ftrGTA);
|
||||
igcFeWa.get()->SetFtrGTC(hwInfo->pSkuTable->ftrGTC);
|
||||
igcFeWa.get()->SetFtrGTX(hwInfo->pSkuTable->ftrGTX);
|
||||
igcFeWa.get()->SetFtr5Slice(hwInfo->pSkuTable->ftr5Slice);
|
||||
igcFeWa.get()->SetFtrSGTPVSKUStrapPresent(hwInfo->pSkuTable.ftrSGTPVSKUStrapPresent);
|
||||
igcFeWa.get()->SetFtrGTA(hwInfo->pSkuTable.ftrGTA);
|
||||
igcFeWa.get()->SetFtrGTC(hwInfo->pSkuTable.ftrGTC);
|
||||
igcFeWa.get()->SetFtrGTX(hwInfo->pSkuTable.ftrGTX);
|
||||
igcFeWa.get()->SetFtr5Slice(hwInfo->pSkuTable.ftr5Slice);
|
||||
|
||||
igcFeWa.get()->SetFtrGpGpuMidThreadLevelPreempt(hwInfo->pSkuTable->ftrGpGpuMidThreadLevelPreempt);
|
||||
igcFeWa.get()->SetFtrIoMmuPageFaulting(hwInfo->pSkuTable->ftrIoMmuPageFaulting);
|
||||
igcFeWa.get()->SetFtrWddm2Svm(hwInfo->pSkuTable->ftrWddm2Svm);
|
||||
igcFeWa.get()->SetFtrPooledEuEnabled(hwInfo->pSkuTable->ftrPooledEuEnabled);
|
||||
igcFeWa.get()->SetFtrGpGpuMidThreadLevelPreempt(hwInfo->pSkuTable.ftrGpGpuMidThreadLevelPreempt);
|
||||
igcFeWa.get()->SetFtrIoMmuPageFaulting(hwInfo->pSkuTable.ftrIoMmuPageFaulting);
|
||||
igcFeWa.get()->SetFtrWddm2Svm(hwInfo->pSkuTable.ftrWddm2Svm);
|
||||
igcFeWa.get()->SetFtrPooledEuEnabled(hwInfo->pSkuTable.ftrPooledEuEnabled);
|
||||
|
||||
igcFeWa.get()->SetFtrResourceStreamer(hwInfo->pSkuTable->ftrResourceStreamer);
|
||||
igcFeWa.get()->SetFtrResourceStreamer(hwInfo->pSkuTable.ftrResourceStreamer);
|
||||
|
||||
return retVal;
|
||||
}
|
||||
|
Reference in New Issue
Block a user