fix(ocloc): add 'asm' and 'disasm' support for PTL

Related-To: NEO-12803
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
This commit is contained in:
Naklicki, Mateusz 2025-02-03 12:35:32 +00:00 committed by Compute-Runtime-Automation
parent 0f17bf2f8c
commit 860b940edf
2 changed files with 6 additions and 0 deletions

View File

@ -785,6 +785,7 @@ TEST(DecoderHelperTest, GivenGfxCoreFamilyWhenTranslatingToIgaGenBaseThenExpecte
std::pair{IGFX_XE_HPG_CORE, IGA_XE_HPG},
std::pair{IGFX_XE_HPC_CORE, IGA_XE_HPC},
std::pair{IGFX_XE2_HPG_CORE, IGA_XE2},
std::pair{IGFX_XE3_CORE, IGA_XE3},
std::pair{IGFX_UNKNOWN_CORE, IGA_GEN_INVALID}};
@ -807,6 +808,7 @@ TEST(DecoderHelperTest, GivenProductFamilyWhenTranslatingToIgaGenBaseThenExpecte
std::pair{IGFX_ARROWLAKE, IGA_XE_HPG},
std::pair{IGFX_BMG, IGA_XE2},
std::pair{IGFX_LUNARLAKE, IGA_XE2},
std::pair{IGFX_PTL, IGA_XE3},
std::pair{IGFX_UNKNOWN, IGA_GEN_INVALID}};

View File

@ -31,6 +31,8 @@ inline iga_gen_t translateToIgaGenBase(PRODUCT_FAMILY productFamily) {
case IGFX_BMG:
case IGFX_LUNARLAKE:
return IGA_XE2;
case IGFX_PTL:
return IGA_XE3;
}
}
@ -48,6 +50,8 @@ inline iga_gen_t translateToIgaGenBase(GFXCORE_FAMILY coreFamily) {
return IGA_XE_HPC;
case IGFX_XE2_HPG_CORE:
return IGA_XE2;
case IGFX_XE3_CORE:
return IGA_XE3;
}
}