mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 04:12:57 +08:00
refactor: encapsulate condition
Related-To: NEO-14844 Signed-off-by: Tomasz Biernacik <tomasz.biernacik@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9619adbf4e
commit
2da77209dc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user