mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 15:03:02 +08:00
refactor(zebin): prioritize AOT config when validating
When validating zebin for target device. If AOT config (device identification number) is present then use it for device validation, and skip old checks (Core Family, Product Family). Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
0499a72451
commit
2ed168dc15
@@ -48,14 +48,14 @@ bool validateTargetDevice(const TargetDevice &targetDevice, Elf::ELF_IDENTIFIER_
|
||||
return false;
|
||||
}
|
||||
|
||||
if (gfxCore == IGFX_UNKNOWN_CORE && productFamily == IGFX_UNKNOWN && productConfig == AOT::UNKNOWN_ISA) {
|
||||
if (productConfig != AOT::UNKNOWN_ISA) {
|
||||
return targetDevice.aotConfig.value == productConfig;
|
||||
}
|
||||
|
||||
if (gfxCore == IGFX_UNKNOWN_CORE && productFamily == IGFX_UNKNOWN) {
|
||||
return false;
|
||||
}
|
||||
if (productConfig != AOT::UNKNOWN_ISA) {
|
||||
if (targetDevice.aotConfig.value != productConfig) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (gfxCore != IGFX_UNKNOWN_CORE) {
|
||||
if (targetDevice.coreFamily != gfxCore) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user