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

@ -11,7 +11,7 @@
namespace NEO {
void DeviceFixture::SetUp() {
hardwareInfo = *platformDevices[0];
hardwareInfo = *defaultHwInfo;
SetUpImpl(&hardwareInfo);
}
@ -33,7 +33,7 @@ void DeviceFixture::TearDown() {
}
MockDevice *DeviceFixture::createWithUsDeviceId(unsigned short usDeviceId) {
hardwareInfo = *platformDevices[0];
hardwareInfo = *defaultHwInfo;
hardwareInfo.platform.usDeviceID = usDeviceId;
return MockDevice::createWithNewExecutionEnvironment<MockDevice>(&hardwareInfo);
}

View File

@ -32,7 +32,7 @@ class MemoryAllocatorFixture : public MemoryManagementFixture {
auto &hwInfo = device->getHardwareInfo();
auto engineType = HwHelper::get(hwInfo.platform.eRenderCoreFamily).getGpgpuEngineInstances(hwInfo)[0];
auto osContext = memoryManager->createAndRegisterOsContext(csr, engineType, 1,
PreemptionHelper::getDefaultPreemptionMode(*platformDevices[0]),
PreemptionHelper::getDefaultPreemptionMode(*defaultHwInfo),
false, false, false);
csr->setupContext(*osContext);
}

View File

@ -78,7 +78,7 @@ HWTEST_TEMPLATED_F(DerivedTemplatedFixtureTests, whenExecutingTemplatedTestThenC
struct TemplatedFixtureBaseTests : public ::testing::Test {
template <typename T>
void SetUpT() {
capturedPipeControlWaRequiredInSetUp = HardwareCommandsHelper<T>::isPipeControlWArequired(**platformDevices);
capturedPipeControlWaRequiredInSetUp = HardwareCommandsHelper<T>::isPipeControlWArequired(*defaultHwInfo);
}
template <typename T>
@ -88,7 +88,7 @@ struct TemplatedFixtureBaseTests : public ::testing::Test {
};
HWTEST_TEMPLATED_F(TemplatedFixtureBaseTests, whenExecutingTemplatedSetupThenTemplateTargetsCorrectPlatform) {
bool capturedPipeControlWaRequiredInTestBody = HardwareCommandsHelper<FamilyType>::isPipeControlWArequired(**platformDevices);
bool capturedPipeControlWaRequiredInTestBody = HardwareCommandsHelper<FamilyType>::isPipeControlWArequired(*defaultHwInfo);
EXPECT_EQ(capturedPipeControlWaRequiredInTestBody, capturedPipeControlWaRequiredInSetUp);
}

View File

@ -114,7 +114,7 @@ struct UltCommandStreamReceiverTest
slmUsed = true;
}
uint32_t L3Config = PreambleHelper<GfxFamily>::getL3Config(*platformDevices[0], slmUsed);
uint32_t L3Config = PreambleHelper<GfxFamily>::getL3Config(*defaultHwInfo, slmUsed);
auto &commandStreamReceiver = pDevice->getUltCommandStreamReceiver<GfxFamily>();
commandStreamReceiver.isPreambleSent = true;