Avoid unnecessary allocation in enqueueHandler

Related-To: NEO-6837

kernelObjsForAuxTranslation will allocate only if needed

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
Dominik Dabek
2022-04-05 16:47:19 +00:00
committed by Compute-Runtime-Automation
parent 616dd55789
commit 76289be8c1
9 changed files with 104 additions and 104 deletions

View File

@@ -332,7 +332,7 @@ class Kernel : public ReferenceTrackedObject<Kernel> {
return usingImagesOnly;
}
void fillWithKernelObjsForAuxTranslation(KernelObjsForAuxTranslation &kernelObjsForAuxTranslation);
std::unique_ptr<KernelObjsForAuxTranslation> fillWithKernelObjsForAuxTranslation();
MOCKABLE_VIRTUAL bool requiresCacheFlushCommand(const CommandQueue &commandQueue) const;