mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
feature: enable linux completion fence on Xe Hp
Related-To: NEO-6643 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
dc78375d46
commit
d0423235ea
@@ -151,6 +151,11 @@ bool HwHelperHw<Family>::disableL3CacheForDebug(const HardwareInfo &) const {
|
||||
return true;
|
||||
}
|
||||
|
||||
template <>
|
||||
inline bool HwHelperHw<Family>::isLinuxCompletionFenceSupported() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
template class HwHelperHw<Family>;
|
||||
template class FlatBatchBufferHelperHw<Family>;
|
||||
template struct MemorySynchronizationCommands<Family>;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2021 Intel Corporation
|
||||
# Copyright (C) 2021-2022 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
@@ -7,7 +7,6 @@
|
||||
if(TESTS_XE_HP_SDV)
|
||||
set(NEO_CORE_TESTS_XE_HP_CORE_XEHP
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test_hw_helper_xehp.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test_preamble_xehp.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test_preemption_xehp.cpp
|
||||
)
|
||||
|
||||
@@ -9,6 +9,7 @@ if(TESTS_XE_HP_CORE)
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/compute_mode_tests_xe_hp_core.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/hw_cmds_xe_hp_core_tests.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/hw_helper_xe_hp_core_tests.cpp
|
||||
)
|
||||
|
||||
if(DEFINED AUB_STREAM_PROJECT_NAME)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2021 Intel Corporation
|
||||
* Copyright (C) 2021-2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -11,9 +11,9 @@
|
||||
#include "shared/test/common/test_macros/test.h"
|
||||
|
||||
using namespace NEO;
|
||||
using HwHelperTestXeHP = ::testing::Test;
|
||||
using HwHelperXeHpCoreTest = ::testing::Test;
|
||||
|
||||
XEHPTEST_F(HwHelperTestXeHP, givenSteppingAorBWhenCheckingSipWAThenTrueIsReturned) {
|
||||
XE_HP_CORE_TEST_F(HwHelperXeHpCoreTest, givenSteppingAorBWhenCheckingSipWAThenTrueIsReturned) {
|
||||
HardwareInfo hwInfo = *defaultHwInfo;
|
||||
auto renderCoreFamily = defaultHwInfo->platform.eRenderCoreFamily;
|
||||
auto productFamily = defaultHwInfo->platform.eProductFamily;
|
||||
@@ -28,7 +28,7 @@ XEHPTEST_F(HwHelperTestXeHP, givenSteppingAorBWhenCheckingSipWAThenTrueIsReturne
|
||||
EXPECT_TRUE(helper.isSipWANeeded(hwInfo));
|
||||
}
|
||||
|
||||
XEHPTEST_F(HwHelperTestXeHP, givenSteppingCWhenCheckingSipWAThenFalseIsReturned) {
|
||||
XE_HP_CORE_TEST_F(HwHelperXeHpCoreTest, givenSteppingCWhenCheckingSipWAThenFalseIsReturned) {
|
||||
HardwareInfo hwInfo = *defaultHwInfo;
|
||||
auto renderCoreFamily = defaultHwInfo->platform.eRenderCoreFamily;
|
||||
auto productFamily = defaultHwInfo->platform.eProductFamily;
|
||||
@@ -39,3 +39,8 @@ XEHPTEST_F(HwHelperTestXeHP, givenSteppingCWhenCheckingSipWAThenFalseIsReturned)
|
||||
hwInfo.platform.usRevId = hwInfoConfig.getHwRevIdFromStepping(REVISION_C, hwInfo);
|
||||
EXPECT_FALSE(helper.isSipWANeeded(hwInfo));
|
||||
}
|
||||
|
||||
XE_HP_CORE_TEST_F(HwHelperXeHpCoreTest, givenHwHelperWhenGettingLinuxCompletionFenceSupportThenTrueIsReturned) {
|
||||
auto &hwHelper = NEO::HwHelper::get(defaultHwInfo->platform.eRenderCoreFamily);
|
||||
EXPECT_TRUE(hwHelper.isLinuxCompletionFenceSupported());
|
||||
}
|
||||
Reference in New Issue
Block a user