Set FeatureTable and WorkaroundTable in setupHardwareInfo

Related-To: NEO-2755

Change-Id: I61ba85909574780464690c70b194b3d3597af43e
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
Katarzyna Cencelewska
2019-03-28 15:34:26 +01:00
committed by sys_ocldev
parent 8e351a43c1
commit c5274c5087
52 changed files with 1697 additions and 950 deletions

View File

@@ -15,10 +15,10 @@ int HwInfoConfigHw<IGFX_BROADWELL>::configureHardwareCustom(HardwareInfo *hwInfo
if (nullptr == osIface) {
return 0;
}
FeatureTable *pSkuTable = const_cast<FeatureTable *>(hwInfo->pSkuTable);
GT_SYSTEM_INFO *pSysInfo = const_cast<GT_SYSTEM_INFO *>(hwInfo->pSysInfo);
WorkaroundTable *pWaTable = const_cast<WorkaroundTable *>(hwInfo->pWaTable);
FeatureTable *pSkuTable = const_cast<FeatureTable *>(hwInfo->pSkuTable);
pSkuTable->ftrL3IACoherency = true;
// There is no interface to read total slice count from drm/i915, so we
// derive this from the number of EUs and subslices.
@@ -29,23 +29,6 @@ int HwInfoConfigHw<IGFX_BROADWELL>::configureHardwareCustom(HardwareInfo *hwInfo
pSysInfo->SliceCount = 1;
}
pSkuTable->ftrPPGTT = true;
pSkuTable->ftrSVM = true;
pSkuTable->ftrL3IACoherency = true;
pSkuTable->ftrIA32eGfxPTEs = true;
pSkuTable->ftrFbc = true;
pSkuTable->ftrFbc2AddressTranslation = true;
pSkuTable->ftrFbcBlitterTracking = true;
pSkuTable->ftrFbcCpuTracking = true;
pSkuTable->ftrTileY = true;
pWaTable->waDisableLSQCROPERFforOCL = true;
pWaTable->waReportPerfCountUseGlobalContextID = true;
pWaTable->waUseVAlign16OnTileXYBpp816 = true;
pWaTable->waModifyVFEStateAfterGPGPUPreemption = true;
pWaTable->waSamplerCacheFlushBetweenRedescribedSurfaceReads = true;
if (hwInfo->pPlatform->usDeviceID == IBDW_GT3_HALO_MOBL_DEVICE_F0_ID ||
hwInfo->pPlatform->usDeviceID == IBDW_GT3_SERV_DEVICE_F0_ID) {
pSysInfo->EdramSizeInKb = 128 * 1024;