mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Allow Device creating multiple CSRs [6/n]
- Introduce default Engine query - Improve Deferred Deleter usage - Remove Tag Allocation from Device Change-Id: Iaa88d8dc0166325acf9a157dcd2217ea408ee285 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
3e800d55e6
commit
0131e66a70
@@ -44,9 +44,9 @@ TEST_F(DeviceTest, getSupportedClVersion) {
|
||||
}
|
||||
|
||||
TEST_F(DeviceTest, getTagAddress) {
|
||||
auto pTagAddress = pDevice->getTagAddress();
|
||||
ASSERT_NE(nullptr, const_cast<uint32_t *>(pTagAddress));
|
||||
EXPECT_EQ(initialHardwareTag, *pTagAddress);
|
||||
auto tagAddress = pDevice->getDefaultEngine().commandStreamReceiver->getTagAddress();
|
||||
ASSERT_NE(nullptr, const_cast<uint32_t *>(tagAddress));
|
||||
EXPECT_EQ(initialHardwareTag, *tagAddress);
|
||||
}
|
||||
|
||||
TEST_F(DeviceTest, WhenGetOSTimeThenNotNull) {
|
||||
@@ -199,7 +199,7 @@ TEST(DeviceCreation, givenMultiDeviceWhenTheyAreCreatedThenEachDeviceHasSeperate
|
||||
EXPECT_EQ(device->getEngine(0).commandStreamReceiver, executionEnvironment.commandStreamReceivers[0][0].get());
|
||||
EXPECT_EQ(device2->getEngine(0).commandStreamReceiver, executionEnvironment.commandStreamReceivers[1][0].get());
|
||||
|
||||
for (size_t i = 1; i < gpgpuEngineInstances.size(); i++) {
|
||||
for (uint32_t i = 1; i < gpgpuEngineInstances.size(); i++) {
|
||||
EXPECT_EQ(nullptr, executionEnvironment.commandStreamReceivers[0][i]);
|
||||
EXPECT_EQ(nullptr, executionEnvironment.commandStreamReceivers[1][i]);
|
||||
EXPECT_EQ(nullptr, device->getEngine(i).commandStreamReceiver);
|
||||
|
||||
Reference in New Issue
Block a user