mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
Revert "refactor: remove platform type string"
This reverts commit 58b443ecf1.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
b7ee3486d9
commit
5a6d358166
@@ -193,4 +193,5 @@ inline std::pair<DecodeError, DeviceBinaryFormat> decodeSingleDeviceBinary(Progr
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool haveSameCore(PRODUCT_FAMILY productFamilyLeft, PRODUCT_FAMILY productFamilyRight);
|
||||
} // namespace NEO
|
||||
|
||||
@@ -60,8 +60,10 @@ bool validateTargetDevice(const TargetDevice &targetDevice, Elf::ELF_IDENTIFIER_
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (targetDevice.productFamily != productFamily) {
|
||||
return false;
|
||||
if (productFamily != IGFX_UNKNOWN) {
|
||||
if (false == haveSameCore(targetDevice.productFamily, productFamily)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (targetMetadata.validateRevisionId) {
|
||||
|
||||
Reference in New Issue
Block a user