refactor: use same paths when add command mi_semaphore_wait

Signed-off-by: Cencelewska, Katarzyna <katarzyna.cencelewska@intel.com>
This commit is contained in:
Cencelewska, Katarzyna
2023-03-03 19:01:14 +00:00
committed by Compute-Runtime-Automation
parent 50da32ffb1
commit 3e116ea378
34 changed files with 147 additions and 155 deletions

View File

@@ -598,14 +598,14 @@ size_t CommandQueueHw<gfxCoreFamily>::estimateLinearStreamSizeInitial(
this->device->getNEODevice()->debugExecutionCounter.load(),
NEO::PauseOnGpuProperties::PauseMode::BeforeWorkload)) {
linearStreamSizeEstimate += NEO::MemorySynchronizationCommands<GfxFamily>::getSizeForBarrierWithPostSyncOperation(this->device->getNEODevice()->getRootDeviceEnvironment(), false);
linearStreamSizeEstimate += sizeof(typename GfxFamily::MI_SEMAPHORE_WAIT);
linearStreamSizeEstimate += NEO::EncodeSempahore<GfxFamily>::getSizeMiSemaphoreWait();
}
if (NEO::PauseOnGpuProperties::pauseModeAllowed(NEO::DebugManager.flags.PauseOnEnqueue.get(),
this->device->getNEODevice()->debugExecutionCounter.load(),
NEO::PauseOnGpuProperties::PauseMode::AfterWorkload)) {
linearStreamSizeEstimate += NEO::MemorySynchronizationCommands<GfxFamily>::getSizeForBarrierWithPostSyncOperation(this->device->getNEODevice()->getRootDeviceEnvironment(), false);
linearStreamSizeEstimate += sizeof(typename GfxFamily::MI_SEMAPHORE_WAIT);
linearStreamSizeEstimate += NEO::EncodeSempahore<GfxFamily>::getSizeMiSemaphoreWait();
}
return linearStreamSizeEstimate;

View File

@@ -147,7 +147,7 @@ void CommandQueueHw<gfxCoreFamily>::patchCommands(CommandList &commandList, uint
csr->getDebugPauseStateGPUAddress(),
static_cast<uint32_t>(NEO::DebugPauseState::hasUserStartConfirmation),
COMPARE_OPERATION::COMPARE_OPERATION_SAD_EQUAL_SDD,
false);
false, true);
break;
}
case CommandList::CommandToPatch::PauseOnEnqueueSemaphoreEnd: {
@@ -155,7 +155,7 @@ void CommandQueueHw<gfxCoreFamily>::patchCommands(CommandList &commandList, uint
csr->getDebugPauseStateGPUAddress(),
static_cast<uint32_t>(NEO::DebugPauseState::hasUserEndConfirmation),
COMPARE_OPERATION::COMPARE_OPERATION_SAD_EQUAL_SDD,
false);
false, true);
break;
}
case CommandList::CommandToPatch::PauseOnEnqueuePipeControlStart: {

View File

@@ -194,7 +194,7 @@ void CommandQueueHw<gfxCoreFamily>::patchCommands(CommandList &commandList, uint
csr->getDebugPauseStateGPUAddress(),
static_cast<uint32_t>(NEO::DebugPauseState::hasUserStartConfirmation),
COMPARE_OPERATION::COMPARE_OPERATION_SAD_EQUAL_SDD,
false);
false, true);
break;
}
case CommandList::CommandToPatch::PauseOnEnqueueSemaphoreEnd: {
@@ -202,7 +202,7 @@ void CommandQueueHw<gfxCoreFamily>::patchCommands(CommandList &commandList, uint
csr->getDebugPauseStateGPUAddress(),
static_cast<uint32_t>(NEO::DebugPauseState::hasUserEndConfirmation),
COMPARE_OPERATION::COMPARE_OPERATION_SAD_EQUAL_SDD,
false);
false, true);
break;
}
case CommandList::CommandToPatch::PauseOnEnqueuePipeControlStart: {