mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Refactor engineGroups container
Use static array instead of the vector. Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
8c9a864aa2
commit
84da4648cd
@ -1736,8 +1736,9 @@ struct CopyOnlyQueueTests : ::testing::Test {
|
||||
if (device->engineGroups[static_cast<uint32_t>(EngineGroupType::Copy)].empty()) {
|
||||
GTEST_SKIP();
|
||||
}
|
||||
device->engineGroups.clear();
|
||||
device->engineGroups.resize(static_cast<uint32_t>(EngineGroupType::MaxEngineGroups));
|
||||
for (auto &engineGroup : device->engineGroups) {
|
||||
engineGroup.clear();
|
||||
}
|
||||
device->engines.clear();
|
||||
|
||||
device->createEngine(0, typeUsageRcs);
|
||||
@ -1912,4 +1913,4 @@ TEST_F(MultiTileFixture, givenNotDefaultContextWithRootDeviceAndTileIdMaskWhenQu
|
||||
ASSERT_NE(nullptr, queue.gpgpuEngine);
|
||||
EXPECT_EQ(rootCsr->isMultiOsContextCapable(), queue.getGpgpuCommandStreamReceiver().isMultiOsContextCapable());
|
||||
EXPECT_EQ(rootCsr, queue.gpgpuEngine->commandStreamReceiver);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user