Dont access PrintfHandler after move operation

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2021-06-28 11:16:15 +00:00
committed by Compute-Runtime-Automation
parent dbe3ef21c1
commit 5fbf084c41
3 changed files with 62 additions and 12 deletions

View File

@@ -216,7 +216,7 @@ class CommandQueue : public BaseObject<_cl_command_queue> {
MOCKABLE_VIRTUAL bool isQueueBlocked();
MOCKABLE_VIRTUAL void waitUntilComplete(uint32_t gpgpuTaskCountToWait, uint32_t bcsTaskCountToWait, FlushStamp flushStampToWait, bool useQuickKmdSleep);
void waitUntilComplete(bool blockedQueue, PrintfHandler *printfHandler);
MOCKABLE_VIRTUAL void waitUntilComplete(bool blockedQueue, PrintfHandler *printfHandler);
static uint32_t getTaskLevelFromWaitList(uint32_t taskLevel,
cl_uint numEventsInWaitList,

View File

@@ -393,7 +393,7 @@ void CommandQueueHw<GfxFamily>::enqueueHandler(Surface **surfacesForResidency,
commandStreamRecieverOwnership.unlock();
if (blocking) {
waitUntilComplete(blockQueue, printfHandler.get());
waitUntilComplete(blockQueue, (blockQueue ? nullptr : printfHandler.get()));
}
}