mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 17:33:00 +08:00
refactor: use same paths when add command mi_semaphore_wait
Signed-off-by: Cencelewska, Katarzyna <katarzyna.cencelewska@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
50da32ffb1
commit
3e116ea378
@@ -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;
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user