fix: correct MetricsLibraryGenId for Xe3

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2025-03-26 09:31:33 +00:00
committed by Compute-Runtime-Automation
parent 8c9204e509
commit 4bc13fa0dc
2 changed files with 6 additions and 1 deletions

View File

@@ -73,7 +73,7 @@ void GfxCoreHelperHw<Family>::adjustDefaultEngineType(HardwareInfo *pHwInfo, con
template <>
uint32_t GfxCoreHelperHw<Family>::getMetricsLibraryGenId() const {
return static_cast<uint32_t>(MetricsLibraryApi::ClientGen::Xe2HPG);
return static_cast<uint32_t>(MetricsLibraryApi::ClientGen::Xe3);
}
template <>

View File

@@ -22,6 +22,11 @@
using GfxCoreHelperTestsXe3Core = GfxCoreHelperTest;
XE3_CORETEST_F(GfxCoreHelperTestsXe3Core, whenGettingMetricsLibraryGenIdThenXe3IsReturned) {
auto &gfxCoreHelper = getHelper<GfxCoreHelper>();
EXPECT_EQ(static_cast<uint32_t>(MetricsLibraryApi::ClientGen::Xe3), gfxCoreHelper.getMetricsLibraryGenId());
}
XE3_CORETEST_F(GfxCoreHelperTestsXe3Core, givenCommandBufferAllocationTypeWhenGetAllocationDataIsCalledThenSystemMemoryIsRequested) {
AllocationData allocData;
AllocationProperties properties(mockRootDeviceIndex, true, 10, AllocationType::commandBuffer, false, mockDeviceBitfield);