refactor: encapsulate condition

Related-To: NEO-14844

Signed-off-by: Tomasz Biernacik <tomasz.biernacik@intel.com>
This commit is contained in:
Tomasz Biernacik
2025-07-21 13:06:43 +00:00
committed by Compute-Runtime-Automation
parent 9619adbf4e
commit 2da77209dc
8 changed files with 40 additions and 28 deletions

View File

@@ -1574,4 +1574,10 @@ size_t CommandQueue::calculateHostPtrSizeForImage(const size_t *region, size_t r
return Image::calculateHostPtrSize(region, dstRowPitch, dstSlicePitch, bytesPerPixel, image->getImageDesc().image_type);
}
void CommandQueue::registerWalkerWithProfilingEnqueued(Event *event) {
if (this->shouldRegisterEnqueuedWalkerWithProfiling && isProfilingEnabled() && event) {
this->isWalkerWithProfilingEnqueued = true;
}
}
} // namespace NEO