mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-01 12:33:12 +08:00
feature: extract indirect access buffer major version from ELF's notes
- use version from ELF to create correct layout of implcit args Related-To: NEO-15574 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a755ad131d
commit
be483491bf
@@ -158,6 +158,12 @@ bool validateTargetDevice(const Elf::Elf<numBits> &elf, const TargetDevice &targ
|
||||
singleDeviceBinary.generatorFeatureVersions.indirectMemoryAccessDetection = static_cast<uint32_t>(*indirectDetectionVersion);
|
||||
break;
|
||||
}
|
||||
case Elf::IntelGTSectionType::indirectAccessBufferMajorVersion: {
|
||||
DEBUG_BREAK_IF(sizeof(uint32_t) != intelGTNote.data.size());
|
||||
auto indirectDetectionVersion = reinterpret_cast<const uint32_t *>(intelGTNote.data.begin());
|
||||
singleDeviceBinary.generatorFeatureVersions.indirectAccessBuffer = static_cast<uint32_t>(*indirectDetectionVersion);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
outWarning.append("DeviceBinaryFormat::zebin : Unrecognized IntelGTNote type: " + std::to_string(intelGTNote.type) + "\n");
|
||||
break;
|
||||
|
||||
@@ -68,7 +68,8 @@ enum IntelGTSectionType : uint32_t {
|
||||
vISAAbiVersion = 5, // for debugger only
|
||||
productConfig = 6,
|
||||
indirectAccessDetectionVersion = 7,
|
||||
lastSupported = indirectAccessDetectionVersion
|
||||
indirectAccessBufferMajorVersion = 8,
|
||||
lastSupported = indirectAccessBufferMajorVersion
|
||||
};
|
||||
struct IntelGTNote {
|
||||
IntelGTSectionType type;
|
||||
|
||||
Reference in New Issue
Block a user