HW CSR with AUB dump to operate on real device (HW Info)

This commit ensures AUB files to be dumped for real device
in the configuration CSR HW + CSR AUB.

Change-Id: I7b5f740440aae062d2f5ad7ad8b9c3b4f2207ddd
This commit is contained in:
Milczarek, Slawomir
2018-02-14 13:48:31 +01:00
committed by sys_ocldev
parent a99d951c55
commit 5c746131f1
18 changed files with 214 additions and 57 deletions

View File

@ -38,33 +38,7 @@ CommandStreamReceiver *createCommandStream(const HardwareInfo *pHwInfo) {
}
bool getDevices(HardwareInfo **hwInfo, size_t &numDevicesReturned) {
bool result;
int32_t csr = DebugManager.flags.SetCommandStreamReceiver.get();
if (csr) {
auto productFamily = DebugManager.flags.ProductFamilyOverride.get();
auto hwInfoConst = *platformDevices;
for (int j = 0; j < IGFX_MAX_PRODUCT; j++) {
if (hardwarePrefix[j] == nullptr)
continue;
if (strcmp(hardwarePrefix[j], productFamily.c_str()) == 0) {
hwInfoConst = hardwareInfoTable[j];
break;
}
}
*hwInfo = const_cast<HardwareInfo *>(hwInfoConst);
hardwareInfoSetupGt[hwInfoConst->pPlatform->eProductFamily](const_cast<GT_SYSTEM_INFO *>(hwInfo[0]->pSysInfo));
numDevicesReturned = 1;
return true;
}
result = DeviceFactory::getDevices(hwInfo, numDevicesReturned);
if (result) {
DEBUG_BREAK_IF(hwInfo == nullptr);
// For now only one device should be present
DEBUG_BREAK_IF(numDevicesReturned != 1);
}
return result;
return getDevicesImpl(hwInfo, numDevicesReturned);
}
} // namespace OCLRT