@@ -292,6 +292,7 @@ class DrmCommandStreamForceTileTest : public ::testing::Test {
292292 executionEnvironment.rootDeviceEnvironments [0 ]->osInterface = std::make_unique<OSInterface>();
293293 executionEnvironment.rootDeviceEnvironments [0 ]->osInterface ->setDriverModel (std::unique_ptr<DriverModel>(mock));
294294 executionEnvironment.rootDeviceEnvironments [0 ]->memoryOperationsInterface = DrmMemoryOperationsHandler::create (*mock, 0u );
295+ executionEnvironment.rootDeviceEnvironments [0 ]->initGmm ();
295296
296297 mock->createVirtualMemoryAddressSpace (HwHelper::getSubDevicesCount (hwInfo));
297298 osContext = std::make_unique<OsContextLinux>(*mock, rootDeviceIndex,
@@ -401,9 +402,11 @@ struct DrmImplicitScalingCommandStreamTest : ::testing::Test {
401402 drm = new DrmMock (mockFd, *executionEnvironment->rootDeviceEnvironments [0 ]);
402403 drm->setupIoctlHelper (hwInfo->platform .eProductFamily );
403404 drm->createVirtualMemoryAddressSpace (HwHelper::getSubDevicesCount (hwInfo.get ()));
405+ executionEnvironment->rootDeviceEnvironments [0 ]->setHwInfo (hwInfo.get ());
404406 executionEnvironment->rootDeviceEnvironments [0 ]->osInterface = std::make_unique<OSInterface>();
405407 executionEnvironment->rootDeviceEnvironments [0 ]->osInterface ->setDriverModel (std::unique_ptr<DriverModel>(drm));
406408 executionEnvironment->rootDeviceEnvironments [0 ]->memoryOperationsInterface = DrmMemoryOperationsHandler::create (*drm, 0u );
409+ executionEnvironment->rootDeviceEnvironments [0 ]->initGmm ();
407410
408411 osContext = std::make_unique<OsContextLinux>(*drm, 0u ,
409412 EngineDescriptorHelper::getDefaultDescriptor (HwHelper::get (hwInfo->platform .eRenderCoreFamily ).getGpgpuEngineInstances (*hwInfo)[0 ],
@@ -439,15 +442,15 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, DrmImplicitScalingCommandStreamTest, givenTwoTilesW
439442 auto csr = createCsr<FamilyType>();
440443
441444 auto size = 1024u ;
442- auto multiStorageBo0 = new BufferObject (drm, 30 , 0 , 1 );
443- auto multiStorageBo1 = new BufferObject (drm, 31 , 0 , 1 );
445+ auto multiStorageBo0 = new BufferObject (drm, 3 , 30 , 0 , 1 );
446+ auto multiStorageBo1 = new BufferObject (drm, 3 , 31 , 0 , 1 );
444447 BufferObjects multiStorageBos{multiStorageBo0, multiStorageBo1};
445448 auto multiStorageAllocation = new DrmAllocation (0 , AllocationType::UNKNOWN, multiStorageBos, nullptr , 0u , size, MemoryPool::LocalMemory);
446449 multiStorageAllocation->storageInfo .memoryBanks = 0b11 ;
447450 csr->CommandStreamReceiver ::makeResident (*multiStorageAllocation);
448451
449- auto tileInstancedBo0 = new BufferObject (drm, 40 , 0 , 1 );
450- auto tileInstancedBo1 = new BufferObject (drm, 41 , 0 , 1 );
452+ auto tileInstancedBo0 = new BufferObject (drm, 3 , 40 , 0 , 1 );
453+ auto tileInstancedBo1 = new BufferObject (drm, 3 , 41 , 0 , 1 );
451454 BufferObjects tileInstancedBos{tileInstancedBo0, tileInstancedBo1};
452455 auto tileInstancedAllocation = new DrmAllocation (0 , AllocationType::UNKNOWN, tileInstancedBos, nullptr , 0u , size, MemoryPool::LocalMemory);
453456 tileInstancedAllocation->storageInfo .memoryBanks = 0b11 ;
@@ -510,10 +513,10 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, DrmImplicitScalingCommandStreamTest, whenForceExecu
510513 gemCloseWorkerMode::gemCloseWorkerActive);
511514 csr->setupContext (*osContext);
512515
513- auto tileInstancedBo0 = new BufferObject (drm, 40 , 0 , 1 );
514- auto tileInstancedBo1 = new BufferObject (drm, 41 , 0 , 1 );
515- auto tileInstancedBo2 = new BufferObject (drm, 42 , 0 , 1 );
516- auto tileInstancedBo3 = new BufferObject (drm, 43 , 0 , 1 );
516+ auto tileInstancedBo0 = new BufferObject (drm, 3 , 40 , 0 , 1 );
517+ auto tileInstancedBo1 = new BufferObject (drm, 3 , 41 , 0 , 1 );
518+ auto tileInstancedBo2 = new BufferObject (drm, 3 , 42 , 0 , 1 );
519+ auto tileInstancedBo3 = new BufferObject (drm, 3 , 43 , 0 , 1 );
517520 BufferObjects tileInstancedBos{tileInstancedBo0, tileInstancedBo1, tileInstancedBo2, tileInstancedBo3};
518521 auto tileInstancedAllocation = new DrmAllocation (0 , AllocationType::UNKNOWN, tileInstancedBos, nullptr , 0u , 1024u , MemoryPool::LocalMemory);
519522 tileInstancedAllocation->storageInfo .memoryBanks = 0b11 ;
@@ -553,10 +556,10 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, DrmImplicitScalingCommandStreamTest, whenForceExecu
553556 gemCloseWorkerMode::gemCloseWorkerActive);
554557 csr->setupContext (*osContext);
555558
556- auto tileInstancedBo0 = new BufferObject (drm, 40 , 0 , 1 );
557- auto tileInstancedBo1 = new BufferObject (drm, 41 , 0 , 1 );
558- auto tileInstancedBo2 = new BufferObject (drm, 42 , 0 , 1 );
559- auto tileInstancedBo3 = new BufferObject (drm, 43 , 0 , 1 );
559+ auto tileInstancedBo0 = new BufferObject (drm, 3 , 40 , 0 , 1 );
560+ auto tileInstancedBo1 = new BufferObject (drm, 3 , 41 , 0 , 1 );
561+ auto tileInstancedBo2 = new BufferObject (drm, 3 , 42 , 0 , 1 );
562+ auto tileInstancedBo3 = new BufferObject (drm, 3 , 43 , 0 , 1 );
560563 BufferObjects tileInstancedBos{tileInstancedBo0, tileInstancedBo1, tileInstancedBo2, tileInstancedBo3};
561564 auto tileInstancedAllocation = new DrmAllocation (0 , AllocationType::UNKNOWN, tileInstancedBos, nullptr , 0u , 1024u , MemoryPool::LocalMemory);
562565 tileInstancedAllocation->storageInfo .memoryBanks = 0b11 ;
@@ -598,7 +601,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, DrmImplicitScalingCommandStreamTest, givenUseSingle
598601 csr->setupContext (*osContext);
599602
600603 const auto size = 1024u ;
601- BufferObject *bufferObject = new BufferObject (drm, 30 , 0 , 1 );
604+ BufferObject *bufferObject = new BufferObject (drm, 3 , 30 , 0 , 1 );
602605 BufferObjects bufferObjects{bufferObject};
603606 auto allocation = new DrmAllocation (0 , AllocationType::UNKNOWN, bufferObjects, nullptr , 0u , size, MemoryPool::LocalMemory);
604607 csr->CommandStreamReceiver ::makeResident (*allocation);
@@ -638,7 +641,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, DrmImplicitScalingCommandStreamTest, givenDisabledI
638641 csr->setupContext (*osContext);
639642
640643 const auto size = 1024u ;
641- BufferObject *bufferObject = new BufferObject (drm, 30 , 0 , 1 );
644+ BufferObject *bufferObject = new BufferObject (drm, 3 , 30 , 0 , 1 );
642645 BufferObjects bufferObjects{bufferObject};
643646 auto allocation = new DrmAllocation (0 , AllocationType::UNKNOWN, bufferObjects, nullptr , 0u , size, MemoryPool::LocalMemory);
644647 csr->CommandStreamReceiver ::makeResident (*allocation);
@@ -671,7 +674,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, DrmImplicitScalingCommandStreamTest, givenMultiTile
671674 csr->setupContext (*osContext);
672675
673676 const auto size = 1024u ;
674- BufferObject *bufferObject = new BufferObject (drm, 30 , 0 , 1 );
677+ BufferObject *bufferObject = new BufferObject (drm, 3 , 30 , 0 , 1 );
675678 BufferObjects bufferObjects{bufferObject};
676679 auto allocation = new DrmAllocation (0 , AllocationType::UNKNOWN, bufferObjects, nullptr , 0u , size, MemoryPool::LocalMemory);
677680 csr->CommandStreamReceiver ::makeResident (*allocation);
0 commit comments