Skip to content

Commit 2451727

Browse files
test: correct heapless split number
Related-to: NEO-12737 Signed-off-by: Damian Tomczak <[email protected]>
1 parent 9723a2f commit 2451727

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

level_zero/core/test/unit_tests/sources/cmdlist/test_in_order_cmdlist_2.cpp

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include "shared/source/command_container/implicit_scaling.h"
99
#include "shared/source/gmm_helper/gmm_helper.h"
10+
#include "shared/source/helpers/compiler_product_helper.h"
1011
#include "shared/source/memory_manager/internal_allocation_storage.h"
1112
#include "shared/test/common/helpers/relaxed_ordering_commands_helper.h"
1213
#include "shared/test/common/libult/ult_command_stream_receiver.h"
@@ -3372,14 +3373,16 @@ HWTEST2_F(BcsSplitInOrderCmdListTests, givenBcsSplitEnabledWhenDispatchingCopyTh
33723373

33733374
auto cmdStream = immCmdList->getCmdContainer().getCommandStream();
33743375

3376+
const auto bcsMiFlushCount = device->getCompilerProductHelper().isHeaplessModeEnabled() ? 1u : 0u;
3377+
33753378
uint32_t copyData = 0;
33763379
constexpr size_t copySize = 8 * MemoryConstants::megaByte;
33773380

33783381
EXPECT_TRUE(verifySplit(0));
33793382

33803383
immCmdList->appendMemoryCopy(&copyData, &copyData, copySize, nullptr, 0, nullptr, copyParams);
33813384

3382-
EXPECT_TRUE(verifySplit(1));
3385+
EXPECT_TRUE(verifySplit(bcsMiFlushCount + 1u));
33833386

33843387
GenCmdList cmdList;
33853388
ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed()));
@@ -3485,6 +3488,8 @@ HWTEST2_F(BcsSplitInOrderCmdListTests, givenBcsSplitEnabledWhenDispatchingCopyRe
34853488

34863489
auto cmdStream = immCmdList->getCmdContainer().getCommandStream();
34873490

3491+
const auto bcsMiFlushCount = device->getCompilerProductHelper().isHeaplessModeEnabled() ? 1u : 0u;
3492+
34883493
uint32_t copyData = 0;
34893494
constexpr size_t copySize = 8 * MemoryConstants::megaByte;
34903495

@@ -3494,7 +3499,7 @@ HWTEST2_F(BcsSplitInOrderCmdListTests, givenBcsSplitEnabledWhenDispatchingCopyRe
34943499

34953500
immCmdList->appendMemoryCopyRegion(&copyData, &region, 1, 1, &copyData, &region, 1, 1, nullptr, 0, nullptr, copyParams);
34963501

3497-
EXPECT_TRUE(verifySplit(1));
3502+
EXPECT_TRUE(verifySplit(bcsMiFlushCount + 1u));
34983503

34993504
GenCmdList cmdList;
35003505
ASSERT_TRUE(FamilyType::Parse::parseCommandBuffer(cmdList, cmdStream->getCpuBase(), cmdStream->getUsed()));
@@ -3522,6 +3527,8 @@ HWTEST2_F(BcsSplitInOrderCmdListTests, givenImmediateCmdListWhenDispatchingWithR
35223527

35233528
auto eventPool = createEvents<FamilyType>(1, true);
35243529

3530+
const auto bcsMiFlushCount = device->getCompilerProductHelper().isHeaplessModeEnabled() ? 1u : 0u;
3531+
35253532
auto eventHandle = events[0]->toHandle();
35263533
constexpr size_t copySize = 8 * MemoryConstants::megaByte;
35273534

@@ -3536,7 +3543,7 @@ HWTEST2_F(BcsSplitInOrderCmdListTests, givenImmediateCmdListWhenDispatchingWithR
35363543
EXPECT_EQ(Event::CounterBasedMode::implicitlyEnabled, events[0]->counterBasedMode);
35373544
}
35383545

3539-
EXPECT_TRUE(verifySplit(1));
3546+
EXPECT_TRUE(verifySplit(bcsMiFlushCount + 1u));
35403547
}
35413548

35423549
} // namespace ult

0 commit comments

Comments
 (0)