@@ -120,7 +120,7 @@ TEST_P(MemoryManagerGetAlloctionData32BitAnd64kbPagesAllowedTest, given64kbAllow
120120 MockMemoryManager::getAllocationData (allocData, properties, 0 , nullptr );
121121 bool bufferCompressedType = (allocType == GraphicsAllocation::AllocationType::BUFFER_COMPRESSED);
122122 EXPECT_TRUE (allocData.flags .allow64kbPages );
123- MockMemoryManager mockMemoryManager (true );
123+ MockMemoryManager mockMemoryManager (true , false );
124124 auto allocation = mockMemoryManager.allocateGraphicsMemory (allocData);
125125
126126 EXPECT_TRUE (mockMemoryManager.allocation64kbPageCreated );
@@ -245,7 +245,7 @@ TEST(MemoryManagerTest, givenEnabled64kbPagesWhenGraphicsMemoryMustBeHostMemoryA
245245}
246246
247247TEST (MemoryManagerTest, givenEnabled64kbPagesWhenGraphicsMemoryWithoutAllow64kbPagesFlagsIsAllocatedThenNon64kbAllocationIsReturned) {
248- MockMemoryManager memoryManager (true );
248+ MockMemoryManager memoryManager (true , false );
249249 AllocationData allocData;
250250 AllocationProperties properties (true , 10 , GraphicsAllocation::AllocationType::BUFFER);
251251
@@ -261,7 +261,7 @@ TEST(MemoryManagerTest, givenEnabled64kbPagesWhenGraphicsMemoryWithoutAllow64kbP
261261}
262262
263263TEST (MemoryManagerTest, givenDisabled64kbPagesWhenGraphicsMemoryMustBeHostMemoryAndIsAllocatedWithNullptrForBufferThenNon64kbAllocationIsReturned) {
264- MockMemoryManager memoryManager (false );
264+ MockMemoryManager memoryManager (false , false );
265265 AllocationData allocData;
266266 AllocationProperties properties (true , 10 , GraphicsAllocation::AllocationType::BUFFER_HOST_MEMORY);
267267
@@ -315,7 +315,7 @@ TEST(MemoryManagerTest, givenEnabled64kbPagesWhenGraphicsMemoryIsAllocatedWithHo
315315}
316316
317317TEST (MemoryManagerTest, givenMemoryManagerWhenGraphicsMemoryAllocationInDevicePoolFailsThenFallbackAllocationIsReturned) {
318- MockMemoryManager memoryManager (false );
318+ MockMemoryManager memoryManager (false , true );
319319
320320 memoryManager.failInDevicePool = true ;
321321
@@ -328,15 +328,15 @@ TEST(MemoryManagerTest, givenMemoryManagerWhenGraphicsMemoryAllocationInDevicePo
328328}
329329
330330TEST (MemoryManagerTest, givenMemoryManagerWhenBufferTypeIsPassedThenAllocateGraphicsMemoryInPreferredPoolCanAllocateInDevicePool) {
331- MockMemoryManager memoryManager (false );
331+ MockMemoryManager memoryManager (false , true );
332332
333333 auto allocation = memoryManager.allocateGraphicsMemoryWithProperties (MockAllocationProperties{MemoryConstants::pageSize, GraphicsAllocation::AllocationType::BUFFER});
334334 EXPECT_NE (nullptr , allocation);
335335 memoryManager.freeGraphicsMemory (allocation);
336336}
337337
338338TEST (MemoryManagerTest, givenMemoryManagerWhenBufferTypeIsPassedAndAllocateInDevicePoolFailsWithErrorThenAllocateGraphicsMemoryInPreferredPoolReturnsNullptr) {
339- MockMemoryManager memoryManager (false );
339+ MockMemoryManager memoryManager (false , true );
340340
341341 memoryManager.failInDevicePoolWithError = true ;
342342
@@ -386,7 +386,7 @@ TEST(MemoryManagerTest, givenTimestampTagBufferTypeWhenGetAllocationDataIsCalled
386386}
387387
388388TEST (MemoryManagerTest, givenAllocationPropertiesWithShareableFlagEnabledWhenAllocateMemoryThenAllocationIsShareable) {
389- MockMemoryManager memoryManager (false );
389+ MockMemoryManager memoryManager (false , false );
390390 AllocationProperties properties{MemoryConstants::pageSize, GraphicsAllocation::AllocationType::BUFFER};
391391 properties.flags .shareable = true ;
392392
@@ -400,7 +400,7 @@ TEST(MemoryManagerTest, givenAllocationPropertiesWithShareableFlagEnabledWhenAll
400400}
401401
402402TEST (MemoryManagerTest, givenAllocationPropertiesWithShareableFlagDisabledWhenAllocateMemoryThenAllocationIsNotShareable) {
403- MockMemoryManager memoryManager (false );
403+ MockMemoryManager memoryManager (false , false );
404404 AllocationProperties properties{MemoryConstants::pageSize, GraphicsAllocation::AllocationType::BUFFER};
405405 properties.flags .shareable = false ;
406406
0 commit comments