fix: setup proper gen id for metrics library on Xe2

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2024-08-12 09:42:11 +00:00
committed by Compute-Runtime-Automation
parent 17c1c24e6a
commit b3d005b2aa
2 changed files with 10 additions and 0 deletions

View File

@@ -399,6 +399,11 @@ bool GfxCoreHelperHw<Family>::usmCompressionSupported(const NEO::HardwareInfo &h
return hwInfo.capabilityTable.ftrRenderCompressedBuffers; return hwInfo.capabilityTable.ftrRenderCompressedBuffers;
} }
template <>
uint32_t GfxCoreHelperHw<Family>::getMetricsLibraryGenId() const {
return static_cast<uint32_t>(MetricsLibraryApi::ClientGen::Xe2HPG);
}
} // namespace NEO } // namespace NEO
namespace NEO { namespace NEO {

View File

@@ -747,3 +747,8 @@ XE2_HPG_CORETEST_F(GfxCoreHelperTestsXe2HpgCore, givenGfxCoreHelperWhenFlagSetAn
debugManager.flags.SetAmountOfReusableAllocations.set(1); debugManager.flags.SetAmountOfReusableAllocations.set(1);
EXPECT_EQ(gfxCoreHelper.getAmountOfAllocationsToFill(), 1u); EXPECT_EQ(gfxCoreHelper.getAmountOfAllocationsToFill(), 1u);
} }
XE2_HPG_CORETEST_F(GfxCoreHelperTestsXe2HpgCore, whenGettingMetricsLibraryGenIdThenXe2HpgIsReturned) {
auto &gfxCoreHelper = getHelper<GfxCoreHelper>();
EXPECT_EQ(static_cast<uint32_t>(MetricsLibraryApi::ClientGen::Xe2HPG), gfxCoreHelper.getMetricsLibraryGenId());
}