diff --git a/shared/source/xe_hpg_core/os_agnostic_hw_info_config_xe_hpg_core.inl b/shared/source/xe_hpg_core/os_agnostic_hw_info_config_xe_hpg_core.inl index 989e0b1894..5aa5a05357 100644 --- a/shared/source/xe_hpg_core/os_agnostic_hw_info_config_xe_hpg_core.inl +++ b/shared/source/xe_hpg_core/os_agnostic_hw_info_config_xe_hpg_core.inl @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Intel Corporation + * Copyright (C) 2021-2022 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -11,3 +11,8 @@ void HwInfoConfigHw::getKernelExtendedProperties(uint32_t *fp16, uin *fp32 = FP_ATOMIC_EXT_FLAG_GLOBAL_ADD; *fp64 = 0u; } + +template <> +bool HwInfoConfigHw::isDirectSubmissionSupported(const HardwareInfo &hwInfo) const { + return true; +} \ No newline at end of file diff --git a/shared/test/common/xe_hpg_core/dg2/test_hw_info_config_dg2.cpp b/shared/test/common/xe_hpg_core/dg2/test_hw_info_config_dg2.cpp index 1e430b9417..b4207e7834 100644 --- a/shared/test/common/xe_hpg_core/dg2/test_hw_info_config_dg2.cpp +++ b/shared/test/common/xe_hpg_core/dg2/test_hw_info_config_dg2.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Intel Corporation + * Copyright (C) 2021-2022 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -58,3 +58,9 @@ DG2TEST_F(TestDg2HwInfoConfig, givenSteppingWhenAskingForLocalMemoryAccessModeTh hwInfo.platform.usRevId = hwInfoConfig.getHwRevIdFromStepping(REVISION_B, hwInfo); EXPECT_EQ(LocalMemoryAccessMode::Default, hwInfoConfig.getLocalMemoryAccessMode(hwInfo)); } + +DG2TEST_F(TestDg2HwInfoConfig, givenDG2HwInfoConfigWhenCheckDirectSubmissionSupportedThenTrueIsReturned) { + auto hwInfo = *defaultHwInfo; + const auto &hwInfoConfig = *HwInfoConfig::get(hwInfo.platform.eProductFamily); + EXPECT_TRUE(hwInfoConfig.isDirectSubmissionSupported(hwInfo)); +} \ No newline at end of file