mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +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
@@ -312,6 +312,10 @@ ze_result_t KernelImp::getBaseAddress(uint64_t *baseAddress) {
|
||||
KernelImp::KernelImp(Module *module) : module(module) {
|
||||
if (module) {
|
||||
this->implicitArgsVersion = module->getDevice()->getGfxCoreHelper().getImplicitArgsVersion();
|
||||
ModuleImp *moduleImp = reinterpret_cast<ModuleImp *>(this->module);
|
||||
if (moduleImp->getTranslationUnit()->programInfo.indirectAccessBufferMajorVersion > 0) {
|
||||
this->implicitArgsVersion = moduleImp->getTranslationUnit()->programInfo.indirectAccessBufferMajorVersion;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user