mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:

committed by
sys_ocldev

parent
5a1d8c0b6d
commit
7a2310163e
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user