@@ -1303,6 +1303,7 @@ TEST_F(GmmLocalMemoryTests, givenFtrLocalMemoryWhenUsingLocalMemoryAndAllocation
13031303 StorageInfo storageInfo{};
13041304 storageInfo.isLockable = true ;
13051305 storageInfo.memoryBanks .set (1 );
1306+ storageInfo.systemMemoryPlacement = false ;
13061307 auto gmm = std::make_unique<Gmm>(getGmmClientContext (), nullptr , 1 , 0 , GMM_RESOURCE_USAGE_OCL_BUFFER, false , storageInfo, true );
13071308 EXPECT_EQ (0u , gmm->resourceParams .Flags .Info .NonLocalOnly );
13081309 EXPECT_EQ (0u , gmm->resourceParams .Flags .Info .LocalOnly );
@@ -1313,6 +1314,7 @@ TEST_F(GmmLocalMemoryTests, givenFtrLocalMemoryWhenUsingLocalMemoryFalseAndAlloc
13131314 StorageInfo storageInfo{};
13141315 storageInfo.isLockable = false ;
13151316 storageInfo.memoryBanks .set (1 );
1317+ storageInfo.systemMemoryPlacement = false ;
13161318 auto gmm = std::make_unique<Gmm>(getGmmClientContext (), nullptr , 1 , 0 , GMM_RESOURCE_USAGE_OCL_BUFFER, false , storageInfo, true );
13171319 EXPECT_EQ (0u , gmm->resourceParams .Flags .Info .NonLocalOnly );
13181320 EXPECT_EQ (0u , gmm->resourceParams .Flags .Info .LocalOnly );
@@ -1324,6 +1326,7 @@ TEST_F(GmmLocalMemoryTests, givenLocalMemoryAndNotLockableAllocationAndStorageIn
13241326 storageInfo.localOnlyRequired = true ;
13251327 storageInfo.isLockable = false ;
13261328 storageInfo.memoryBanks .set (1 );
1329+ storageInfo.systemMemoryPlacement = false ;
13271330
13281331 auto gmm = std::make_unique<Gmm>(getGmmClientContext (), nullptr , 1 , 0 , GMM_RESOURCE_USAGE_OCL_BUFFER, false , storageInfo, true );
13291332
@@ -1336,6 +1339,7 @@ TEST_F(GmmLocalMemoryTests, givenLocalMemoryAndStorageInfoWithLocalOnlyRequiredW
13361339 storageInfo.localOnlyRequired = true ;
13371340 storageInfo.isLockable = false ;
13381341 storageInfo.memoryBanks .set (1 );
1342+ storageInfo.systemMemoryPlacement = false ;
13391343
13401344 DebugManagerStateRestore restorer;
13411345
@@ -1368,6 +1372,7 @@ TEST_F(GmmLocalMemoryTests, givenFtrLocalMemoryAndCompressionEnabledWhenUsingLoc
13681372 DebugManager.flags .RenderCompressedBuffersEnabled .set (1 );
13691373 StorageInfo storageInfo{};
13701374 storageInfo.isLockable = false ;
1375+ storageInfo.systemMemoryPlacement = false ;
13711376 storageInfo.memoryBanks .set (1 );
13721377
13731378 auto gmm = std::make_unique<Gmm>(getGmmClientContext (), nullptr , 1 , 0 , GMM_RESOURCE_USAGE_OCL_BUFFER, true , storageInfo, true );
@@ -1383,6 +1388,7 @@ TEST_F(GmmLocalMemoryTests, givenFtrLocalMemoryWhenUseSystemMemoryIsFalseAndAllo
13831388 DebugManager.flags .SetCommandStreamReceiver .set (csrMode);
13841389 StorageInfo storageInfo{};
13851390 storageInfo.memoryBanks .set (1 );
1391+ storageInfo.systemMemoryPlacement = false ;
13861392 storageInfo.isLockable = false ;
13871393 auto gmm = std::make_unique<Gmm>(getGmmClientContext (), nullptr , 1 , 0 , GMM_RESOURCE_USAGE_OCL_BUFFER, false , storageInfo, true );
13881394 EXPECT_EQ (0u , gmm->resourceParams .Flags .Info .NonLocalOnly );
@@ -1406,6 +1412,7 @@ TEST_F(GmmLocalMemoryTests, givenUseLocalMemoryInImageInfoTrueWhenGmmIsCreatedTh
14061412
14071413 imgInfo.useLocalMemory = true ;
14081414 StorageInfo storageInfo = {};
1415+ storageInfo.systemMemoryPlacement = false ;
14091416 storageInfo.memoryBanks .set (1 );
14101417
14111418 auto gmm = std::make_unique<Gmm>(getGmmClientContext (), imgInfo, storageInfo, false );
@@ -1433,6 +1440,7 @@ TEST_F(GmmLocalMemoryTests, givenUseCompressionAndLocalMemoryInImageInfoTrueWhen
14331440
14341441 StorageInfo storageInfo = {};
14351442 storageInfo.memoryBanks .set (1 );
1443+ storageInfo.systemMemoryPlacement = false ;
14361444
14371445 auto gmm = std::make_unique<Gmm>(getGmmClientContext (), imgInfo, storageInfo, true );
14381446 EXPECT_TRUE (gmm->isCompressionEnabled );
@@ -1498,6 +1506,7 @@ TEST_F(MultiTileGmmTests, givenMultiTileAllocationWithoutCloningWhenGmmIsCreated
14981506 StorageInfo storageInfo;
14991507 storageInfo.memoryBanks = 1 ;
15001508 storageInfo.cloningOfPageTables = false ;
1509+ storageInfo.systemMemoryPlacement = false ;
15011510
15021511 Gmm gmm (getGmmClientContext (), nullptr , 1 , 0 , GMM_RESOURCE_USAGE_OCL_BUFFER, false , storageInfo, true );
15031512
@@ -1522,6 +1531,7 @@ TEST_F(MultiTileGmmTests, givenMultiTileWhenGmmIsCreatedWithNonLocalMemoryThenMu
15221531
15231532TEST_F (MultiTileGmmTests, givenMultiTileWhenGmmIsCreatedWithSpecificMemoryBanksThenMultitileArchIsEnabled) {
15241533 StorageInfo storageInfo;
1534+ storageInfo.systemMemoryPlacement = false ;
15251535 storageInfo.memoryBanks = 1u ;
15261536 storageInfo.cloningOfPageTables = false ;
15271537
@@ -1538,6 +1548,7 @@ TEST_F(MultiTileGmmTests, givenMultiTileWhenGmmIsCreatedWithCloningEnabledThenGp
15381548 StorageInfo storageInfo;
15391549 storageInfo.memoryBanks = 2u ;
15401550 storageInfo.cloningOfPageTables = true ;
1551+ storageInfo.systemMemoryPlacement = false ;
15411552 storageInfo.pageTablesVisibility = 3u ;
15421553
15431554 Gmm gmm (getGmmClientContext (), nullptr , 1 , 0 , GMM_RESOURCE_USAGE_OCL_BUFFER, false , storageInfo, true );
@@ -1554,6 +1565,7 @@ TEST_F(MultiTileGmmTests, whenAllocationIsTileInstancedWithoutClonningPageTables
15541565 storageInfo.cloningOfPageTables = false ;
15551566 storageInfo.tileInstanced = true ;
15561567 storageInfo.memoryBanks = 2u ;
1568+ storageInfo.systemMemoryPlacement = false ;
15571569
15581570 Gmm gmm (getGmmClientContext (), nullptr , 1 , 0 , GMM_RESOURCE_USAGE_OCL_BUFFER, false , storageInfo, true );
15591571
0 commit comments