1
1
/*
2
- * Copyright (C) 2017-2019 Intel Corporation
2
+ * Copyright (C) 2017-2023 Intel Corporation
3
3
*
4
4
* SPDX-License-Identifier: MIT
5
5
*
@@ -168,7 +168,7 @@ void CommandQueueHw<GfxFamily>::enqueueHandler(Surface **surfacesForResidency,
168
168
TakeOwnershipWrapper<CommandQueueHw<GfxFamily>> queueOwnership (*this );
169
169
170
170
auto blockQueue = false ;
171
- auto taskLevel = 0u ;
171
+ TaskCountType taskLevel = 0u ;
172
172
obtainTaskLevelAndBlockedStatus (taskLevel, numEventsInWaitList, eventWaitList, blockQueue, commandType);
173
173
bool blitEnqueue = blitEnqueueAllowed (blockQueue, commandType);
174
174
@@ -483,7 +483,7 @@ void CommandQueueHw<GfxFamily>::processDeviceEnqueue(DeviceQueueHw<GfxFamily> *d
483
483
auto parentKernel = multiDispatchInfo.peekParentKernel ();
484
484
size_t minSizeSSHForEM = HardwareCommandsHelper<GfxFamily>::getSizeRequiredForExecutionModel (IndirectHeap::SURFACE_STATE, *parentKernel);
485
485
486
- uint32_t taskCount = getGpgpuCommandStreamReceiver ().peekTaskCount () + 1 ;
486
+ TaskCountType taskCount = getGpgpuCommandStreamReceiver ().peekTaskCount () + 1 ;
487
487
devQueueHw->setupExecutionModelDispatch (getIndirectHeap (IndirectHeap::SURFACE_STATE, minSizeSSHForEM),
488
488
*devQueueHw->getIndirectHeap (IndirectHeap::DYNAMIC_STATE),
489
489
parentKernel,
@@ -523,7 +523,7 @@ void CommandQueueHw<GfxFamily>::processDeviceEnqueue(DeviceQueueHw<GfxFamily> *d
523
523
}
524
524
525
525
template <typename GfxFamily>
526
- void CommandQueueHw<GfxFamily>::obtainTaskLevelAndBlockedStatus(unsigned int &taskLevel, cl_uint &numEventsInWaitList, const cl_event *&eventWaitList, bool &blockQueueStatus, unsigned int commandType) {
526
+ void CommandQueueHw<GfxFamily>::obtainTaskLevelAndBlockedStatus(TaskCountType &taskLevel, cl_uint &numEventsInWaitList, const cl_event *&eventWaitList, bool &blockQueueStatus, unsigned int commandType) {
527
527
auto isQueueBlockedStatus = isQueueBlocked ();
528
528
taskLevel = getTaskLevelFromWaitList (this ->taskLevel , numEventsInWaitList, eventWaitList);
529
529
blockQueueStatus = (taskLevel == Event::eventNotReady) || isQueueBlockedStatus;
@@ -536,7 +536,7 @@ void CommandQueueHw<GfxFamily>::obtainTaskLevelAndBlockedStatus(unsigned int &ta
536
536
}
537
537
538
538
template <typename GfxFamily>
539
- bool CommandQueueHw<GfxFamily>::isTaskLevelUpdateRequired(const uint32_t &taskLevel, const cl_event *eventWaitList, const cl_uint &numEventsInWaitList, unsigned int commandType) {
539
+ bool CommandQueueHw<GfxFamily>::isTaskLevelUpdateRequired(const TaskCountType &taskLevel, const cl_event *eventWaitList, const cl_uint &numEventsInWaitList, unsigned int commandType) {
540
540
bool updateTaskLevel = true ;
541
541
// if we are blocked by user event then no update
542
542
if (taskLevel == Event::eventNotReady) {
@@ -577,7 +577,7 @@ CompletionStamp CommandQueueHw<GfxFamily>::enqueueNonBlocked(
577
577
TimestampPacketContainer *previousTimestampPacketNodes,
578
578
EventsRequest &eventsRequest,
579
579
EventBuilder &eventBuilder,
580
- uint32_t taskLevel,
580
+ TaskCountType taskLevel,
581
581
PrintfHandler *printfHandler) {
582
582
583
583
UNRECOVERABLE_IF (multiDispatchInfo.empty ());
@@ -806,7 +806,7 @@ CompletionStamp CommandQueueHw<GfxFamily>::enqueueCommandWithoutKernel(
806
806
TimestampPacketContainer *previousTimestampPacketNodes,
807
807
EventsRequest &eventsRequest,
808
808
EventBuilder &eventBuilder,
809
- uint32_t taskLevel) {
809
+ TaskCountType taskLevel) {
810
810
811
811
if (timestampPacketContainer) {
812
812
timestampPacketContainer->makeResident (getGpgpuCommandStreamReceiver ());
0 commit comments