Skip to content

Commit 5a908f6

Browse files
performance: enable command list primary batch buffer on xe hpg platform
Related-To: NEO-7807 Signed-off-by: Zbigniew Zdanowicz <[email protected]>
1 parent e450434 commit 5a908f6

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

level_zero/core/source/gfx_core_helpers/l0_gfx_core_helper_xehp_and_later.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ std::vector<uint32_t> L0GfxCoreHelperHw<Family>::getSupportedNumGrfs() const {
7979

8080
template <typename Family>
8181
bool L0GfxCoreHelperHw<Family>::platformSupportsPrimaryBatchBufferCmdList() const {
82-
return false;
82+
return true;
8383
}
8484

8585
} // namespace L0

level_zero/core/source/xe_hpc_core/l0_gfx_core_helper_xe_hpc_core.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ bool L0GfxCoreHelperHw<Family>::alwaysAllocateEventInLocalMem() const {
2929
return true;
3030
}
3131

32-
template <>
33-
bool L0GfxCoreHelperHw<Family>::platformSupportsPrimaryBatchBufferCmdList() const {
34-
return true;
35-
}
36-
3732
template class L0GfxCoreHelperHw<Family>;
3833

3934
} // namespace L0

level_zero/core/test/unit_tests/xe_hpg_core/test_l0_gfx_core_helper_xe_hpg_core.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ XE_HPG_CORETEST_F(L0GfxCoreHelperTestXeHpg, GivenXeHpgWhenGettingPlatformDefault
6666
EXPECT_EQ(NEO::HeapAddressModel::PrivateHeaps, l0GfxCoreHelper.getPlatformHeapAddressModel());
6767
}
6868

69-
XE_HPG_CORETEST_F(L0GfxCoreHelperTestXeHpg, GivenXeHpgWhenCheckingL0HelperForCmdlistPrimaryBufferSupportThenReturnFalse) {
69+
XE_HPG_CORETEST_F(L0GfxCoreHelperTestXeHpg, GivenXeHpgWhenCheckingL0HelperForCmdlistPrimaryBufferSupportThenReturnTrue) {
7070
auto &l0GfxCoreHelper = getHelper<L0GfxCoreHelper>();
71-
EXPECT_FALSE(l0GfxCoreHelper.platformSupportsPrimaryBatchBufferCmdList());
71+
EXPECT_TRUE(l0GfxCoreHelper.platformSupportsPrimaryBatchBufferCmdList());
7272
}
7373

7474
} // namespace ult

0 commit comments

Comments
 (0)