Remove platformDevices [2/n]

replace **platformDevices with *defaultHwInfo
replace *platformDevices[0] with *defaultHwInfo

Related-To: NEO-4499
Change-Id: If973ceb44ede2e940969f9c666f85d9a939fbff8
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2020-03-24 11:42:54 +01:00
committed by sys_ocldev
parent 5a1d8c0b6d
commit 7a2310163e
52 changed files with 167 additions and 167 deletions

View File

@@ -519,7 +519,7 @@ INSTANTIATE_TEST_CASE_P(
::testing::Values(PreemptionMode::Disabled, PreemptionMode::MidBatch, PreemptionMode::ThreadGroup));
HWTEST_F(MidThreadPreemptionTests, createCsrSurfaceNoWa) {
HardwareInfo hwInfo = *platformDevices[0];
HardwareInfo hwInfo = *defaultHwInfo;
hwInfo.workaroundTable.waCSRUncachable = false;
std::unique_ptr<MockDevice> mockDevice(MockDevice::createWithNewExecutionEnvironment<MockDevice>(&hwInfo));
@@ -558,7 +558,7 @@ HWTEST_F(MidThreadPreemptionTests, givenMidThreadPreemptionWhenFailingOnCsrSurfa
}
HWTEST_F(MidThreadPreemptionTests, createCsrSurfaceWa) {
HardwareInfo hwInfo = *platformDevices[0];
HardwareInfo hwInfo = *defaultHwInfo;
hwInfo.workaroundTable.waCSRUncachable = true;
std::unique_ptr<MockDevice> mockDevice(MockDevice::createWithNewExecutionEnvironment<MockDevice>(&hwInfo));