refactor: reuse tag allocation for host function data

Related-To: NEO-14577
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk
2025-11-05 00:17:13 +00:00
committed by Compute-Runtime-Automation
parent e3e13d38f7
commit 8757ecf2f7
12 changed files with 90 additions and 82 deletions

View File

@@ -197,8 +197,7 @@ void CommandQueueHw<gfxCoreFamily>::patchCommands(CommandList &commandList, uint
break;
}
case CommandToPatch::HostFunctionEntry:
csr->ensureHostFunctionDataInitialization();
csr->makeResidentHostFunctionAllocation();
csr->ensureHostFunctionWorkerStarted();
csr->signalHostFunctionWorker();
NEO::HostFunctionHelper::programHostFunctionAddress<GfxFamily>(nullptr, commandToPatch.pCommand, csr->getHostFunctionData(), commandToPatch.baseAddress);
break;

View File

@@ -285,8 +285,7 @@ void CommandQueueHw<gfxCoreFamily>::patchCommands(CommandList &commandList, uint
break;
}
case CommandToPatch::HostFunctionEntry:
csr->ensureHostFunctionDataInitialization();
csr->makeResidentHostFunctionAllocation();
csr->ensureHostFunctionWorkerStarted();
csr->signalHostFunctionWorker();
NEO::HostFunctionHelper::programHostFunctionAddress<GfxFamily>(nullptr, commandToPatch.pCommand, csr->getHostFunctionData(), commandToPatch.baseAddress);
break;