7
7
8
8
#include " shared/source/command_container/implicit_scaling.h"
9
9
#include " shared/source/gmm_helper/gmm_helper.h"
10
+ #include " shared/source/helpers/compiler_product_helper.h"
10
11
#include " shared/source/memory_manager/internal_allocation_storage.h"
11
12
#include " shared/test/common/helpers/relaxed_ordering_commands_helper.h"
12
13
#include " shared/test/common/libult/ult_command_stream_receiver.h"
@@ -3372,14 +3373,16 @@ HWTEST2_F(BcsSplitInOrderCmdListTests, givenBcsSplitEnabledWhenDispatchingCopyTh
3372
3373
3373
3374
auto cmdStream = immCmdList->getCmdContainer ().getCommandStream ();
3374
3375
3376
+ const auto bcsMiFlushCount = device->getCompilerProductHelper ().isHeaplessModeEnabled () ? 1u : 0u ;
3377
+
3375
3378
uint32_t copyData = 0 ;
3376
3379
constexpr size_t copySize = 8 * MemoryConstants::megaByte;
3377
3380
3378
3381
EXPECT_TRUE (verifySplit (0 ));
3379
3382
3380
3383
immCmdList->appendMemoryCopy (©Data, ©Data, copySize, nullptr , 0 , nullptr , copyParams);
3381
3384
3382
- EXPECT_TRUE (verifySplit (1 ));
3385
+ EXPECT_TRUE (verifySplit (bcsMiFlushCount + 1u ));
3383
3386
3384
3387
GenCmdList cmdList;
3385
3388
ASSERT_TRUE (FamilyType::Parse::parseCommandBuffer (cmdList, cmdStream->getCpuBase (), cmdStream->getUsed ()));
@@ -3485,6 +3488,8 @@ HWTEST2_F(BcsSplitInOrderCmdListTests, givenBcsSplitEnabledWhenDispatchingCopyRe
3485
3488
3486
3489
auto cmdStream = immCmdList->getCmdContainer ().getCommandStream ();
3487
3490
3491
+ const auto bcsMiFlushCount = device->getCompilerProductHelper ().isHeaplessModeEnabled () ? 1u : 0u ;
3492
+
3488
3493
uint32_t copyData = 0 ;
3489
3494
constexpr size_t copySize = 8 * MemoryConstants::megaByte;
3490
3495
@@ -3494,7 +3499,7 @@ HWTEST2_F(BcsSplitInOrderCmdListTests, givenBcsSplitEnabledWhenDispatchingCopyRe
3494
3499
3495
3500
immCmdList->appendMemoryCopyRegion (©Data, ®ion, 1 , 1 , ©Data, ®ion, 1 , 1 , nullptr , 0 , nullptr , copyParams);
3496
3501
3497
- EXPECT_TRUE (verifySplit (1 ));
3502
+ EXPECT_TRUE (verifySplit (bcsMiFlushCount + 1u ));
3498
3503
3499
3504
GenCmdList cmdList;
3500
3505
ASSERT_TRUE (FamilyType::Parse::parseCommandBuffer (cmdList, cmdStream->getCpuBase (), cmdStream->getUsed ()));
@@ -3522,6 +3527,8 @@ HWTEST2_F(BcsSplitInOrderCmdListTests, givenImmediateCmdListWhenDispatchingWithR
3522
3527
3523
3528
auto eventPool = createEvents<FamilyType>(1 , true );
3524
3529
3530
+ const auto bcsMiFlushCount = device->getCompilerProductHelper ().isHeaplessModeEnabled () ? 1u : 0u ;
3531
+
3525
3532
auto eventHandle = events[0 ]->toHandle ();
3526
3533
constexpr size_t copySize = 8 * MemoryConstants::megaByte;
3527
3534
@@ -3536,7 +3543,7 @@ HWTEST2_F(BcsSplitInOrderCmdListTests, givenImmediateCmdListWhenDispatchingWithR
3536
3543
EXPECT_EQ (Event::CounterBasedMode::implicitlyEnabled, events[0 ]->counterBasedMode );
3537
3544
}
3538
3545
3539
- EXPECT_TRUE (verifySplit (1 ));
3546
+ EXPECT_TRUE (verifySplit (bcsMiFlushCount + 1u ));
3540
3547
}
3541
3548
3542
3549
} // namespace ult
0 commit comments