mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 23:33:20 +08:00
fix: apply relocations in isa segments for builtin kernels
- use correct patched isa segments when transferring isa for builtins to preserve applied relocations - do not set requiresImplicitArgs to false for builtins, zebin defines is implicit arg buffer is required Related-To: NEO-14667, NEO-15276 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
969176e43c
commit
e6ed42d056
@@ -657,7 +657,8 @@ void Linker::resolveImplicitArgs(const KernelDescriptorsT &kernelDescriptors, De
|
||||
if (pImplicitArgsRelocs != pImplicitArgsRelocationAddresses.end()) {
|
||||
for (const auto &pImplicitArgsReloc : pImplicitArgsRelocs->second) {
|
||||
UNRECOVERABLE_IF(!pDevice);
|
||||
kernelDescriptor.kernelAttributes.flags.requiresImplicitArgs |= kernelDescriptor.kernelAttributes.flags.useStackCalls || pDevice->getDebugger() != nullptr;
|
||||
bool addImplcictArgs = kernelDescriptor.kernelAttributes.flags.useStackCalls || (userModule && pDevice->getDebugger() != nullptr);
|
||||
kernelDescriptor.kernelAttributes.flags.requiresImplicitArgs |= addImplcictArgs;
|
||||
if (kernelDescriptor.kernelAttributes.flags.requiresImplicitArgs) {
|
||||
uint64_t implicitArgsSize = 0;
|
||||
if (pDevice->getGfxCoreHelper().getImplicitArgsVersion() == 0) {
|
||||
|
||||
Reference in New Issue
Block a user