feature: enable WMTP on LNL

Related-To: NEO-12648
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski 2024-09-27 08:23:38 +00:00 committed by Compute-Runtime-Automation
parent 891c5c84de
commit 7adf9ad32a
3 changed files with 1 additions and 18 deletions

View File

@ -15,7 +15,6 @@
#include "shared/source/helpers/compiler_product_helper_xe_hpc_and_later.inl"
#include "platforms.h"
#include "wmtp_setup_lnl.inl"
namespace NEO {
template <>
@ -23,11 +22,6 @@ uint32_t CompilerProductHelperHw<IGFX_LUNARLAKE>::getDefaultHwIpVersion() const
return AOT::LNL_B0;
}
template <>
bool CompilerProductHelperHw<IGFX_LUNARLAKE>::isMidThreadPreemptionSupported(const HardwareInfo &hwInfo) const {
return hwInfo.featureTable.flags.ftrWalkerMTP && wmtpSupported;
}
static EnableCompilerProductHelper<IGFX_LUNARLAKE> enableCompilerProductHelperLNL;
} // namespace NEO

View File

@ -1,10 +0,0 @@
/*
* Copyright (C) 2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
namespace NEO {
constexpr bool wmtpSupported = false;
} // namespace NEO

View File

@ -20,7 +20,6 @@
#include "aubstream/product_family.h"
#include "platforms.h"
#include "wmtp_setup_lnl.inl"
using namespace NEO;
@ -93,7 +92,7 @@ LNLTEST_F(LnlProductHelper, givenCompilerProductHelperWhenGetMidThreadPreemption
hwInfo.featureTable.flags.ftrWalkerMTP = false;
EXPECT_FALSE(compilerProductHelper->isMidThreadPreemptionSupported(hwInfo));
hwInfo.featureTable.flags.ftrWalkerMTP = true;
EXPECT_EQ(wmtpSupported, compilerProductHelper->isMidThreadPreemptionSupported(hwInfo));
EXPECT_TRUE(compilerProductHelper->isMidThreadPreemptionSupported(hwInfo));
}
LNLTEST_F(LnlProductHelper, whenCheckPreferredAllocationMethodThenAllocateByKmdIsReturnedExceptTagBufferAndTimestampPacketTagBuffer) {