feature(zebin): Re-introduce support for validation using PRODUCT_CONFIG value

Related-To: IGC-6300
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
This commit is contained in:
Kacper Nowak
2023-08-28 17:36:35 +00:00
committed by Compute-Runtime-Automation
parent b674a2829d
commit a0c35bf0d9
2 changed files with 35 additions and 0 deletions

View File

@@ -124,6 +124,9 @@ bool validateTargetDevice(const Elf::Elf<numBits> &elf, const TargetDevice &targ
break;
}
case Elf::IntelGTSectionType::ProductConfig: {
DEBUG_BREAK_IF(sizeof(uint32_t) != intelGTNote.data.size());
auto productConfigData = reinterpret_cast<const uint32_t *>(intelGTNote.data.begin());
productConfig = static_cast<AOT::PRODUCT_CONFIG>(*productConfigData);
break;
}
case Elf::IntelGTSectionType::vISAAbiVersion: {