mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 18:06:32 +08:00
refactor, remove typo in struct name
change name of EncodeSempahore to EncodeSemaphore Signed-off-by: Cencelewska, Katarzyna <katarzyna.cencelewska@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
89cd4bd4a5
commit
398c7b2d29
@@ -2059,7 +2059,7 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendWaitOnEvents(uint32_t nu
|
||||
NEO::EncodeBatchBufferStartOrEnd<GfxFamily>::programConditionalDataMemBatchBufferStart(*commandContainer.getCommandStream(), 0, gpuAddr, eventStateClear,
|
||||
NEO::CompareOperation::Equal, true);
|
||||
} else {
|
||||
NEO::EncodeSempahore<GfxFamily>::addMiSemaphoreWaitCommand(*commandContainer.getCommandStream(),
|
||||
NEO::EncodeSemaphore<GfxFamily>::addMiSemaphoreWaitCommand(*commandContainer.getCommandStream(),
|
||||
gpuAddr,
|
||||
eventStateClear,
|
||||
COMPARE_OPERATION::COMPARE_OPERATION_SAD_NOT_EQUAL_SDD);
|
||||
@@ -2819,7 +2819,7 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendWaitOnMemory(void *desc,
|
||||
|
||||
commandContainer.addToResidencyContainer(srcAllocationStruct.alloc);
|
||||
uint64_t gpuAddress = static_cast<uint64_t>(srcAllocationStruct.alignedAllocationPtr);
|
||||
NEO::EncodeSempahore<GfxFamily>::addMiSemaphoreWaitCommand(*commandContainer.getCommandStream(),
|
||||
NEO::EncodeSemaphore<GfxFamily>::addMiSemaphoreWaitCommand(*commandContainer.getCommandStream(),
|
||||
gpuAddress,
|
||||
data,
|
||||
comparator);
|
||||
|
||||
@@ -46,7 +46,7 @@ void CommandListCoreFamilyImmediate<gfxCoreFamily>::checkAvailableSpace(uint32_t
|
||||
}
|
||||
}
|
||||
|
||||
size_t semaphoreSize = NEO::EncodeSempahore<GfxFamily>::getSizeMiSemaphoreWait() * numEvents;
|
||||
size_t semaphoreSize = NEO::EncodeSemaphore<GfxFamily>::getSizeMiSemaphoreWait() * numEvents;
|
||||
if (this->commandContainer.getCommandStream()->getAvailableSpace() < maxImmediateCommandSize + semaphoreSize) {
|
||||
bool requireSystemMemoryCommandBuffer = !hasRelaxedOrderingDependencies;
|
||||
|
||||
|
||||
@@ -604,14 +604,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 += NEO::EncodeSempahore<GfxFamily>::getSizeMiSemaphoreWait();
|
||||
linearStreamSizeEstimate += NEO::EncodeSemaphore<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 += NEO::EncodeSempahore<GfxFamily>::getSizeMiSemaphoreWait();
|
||||
linearStreamSizeEstimate += NEO::EncodeSemaphore<GfxFamily>::getSizeMiSemaphoreWait();
|
||||
}
|
||||
|
||||
return linearStreamSizeEstimate;
|
||||
|
||||
@@ -140,7 +140,7 @@ void CommandQueueHw<gfxCoreFamily>::patchCommands(CommandList &commandList, uint
|
||||
break;
|
||||
}
|
||||
case CommandList::CommandToPatch::PauseOnEnqueueSemaphoreStart: {
|
||||
NEO::EncodeSempahore<GfxFamily>::programMiSemaphoreWait(reinterpret_cast<MI_SEMAPHORE_WAIT *>(commandToPatch.pCommand),
|
||||
NEO::EncodeSemaphore<GfxFamily>::programMiSemaphoreWait(reinterpret_cast<MI_SEMAPHORE_WAIT *>(commandToPatch.pCommand),
|
||||
csr->getDebugPauseStateGPUAddress(),
|
||||
static_cast<uint32_t>(NEO::DebugPauseState::hasUserStartConfirmation),
|
||||
COMPARE_OPERATION::COMPARE_OPERATION_SAD_EQUAL_SDD,
|
||||
@@ -148,7 +148,7 @@ void CommandQueueHw<gfxCoreFamily>::patchCommands(CommandList &commandList, uint
|
||||
break;
|
||||
}
|
||||
case CommandList::CommandToPatch::PauseOnEnqueueSemaphoreEnd: {
|
||||
NEO::EncodeSempahore<GfxFamily>::programMiSemaphoreWait(reinterpret_cast<MI_SEMAPHORE_WAIT *>(commandToPatch.pCommand),
|
||||
NEO::EncodeSemaphore<GfxFamily>::programMiSemaphoreWait(reinterpret_cast<MI_SEMAPHORE_WAIT *>(commandToPatch.pCommand),
|
||||
csr->getDebugPauseStateGPUAddress(),
|
||||
static_cast<uint32_t>(NEO::DebugPauseState::hasUserEndConfirmation),
|
||||
COMPARE_OPERATION::COMPARE_OPERATION_SAD_EQUAL_SDD,
|
||||
|
||||
@@ -199,7 +199,7 @@ void CommandQueueHw<gfxCoreFamily>::patchCommands(CommandList &commandList, uint
|
||||
break;
|
||||
}
|
||||
case CommandList::CommandToPatch::PauseOnEnqueueSemaphoreStart: {
|
||||
NEO::EncodeSempahore<GfxFamily>::programMiSemaphoreWait(reinterpret_cast<MI_SEMAPHORE_WAIT *>(commandToPatch.pCommand),
|
||||
NEO::EncodeSemaphore<GfxFamily>::programMiSemaphoreWait(reinterpret_cast<MI_SEMAPHORE_WAIT *>(commandToPatch.pCommand),
|
||||
csr->getDebugPauseStateGPUAddress(),
|
||||
static_cast<uint32_t>(NEO::DebugPauseState::hasUserStartConfirmation),
|
||||
COMPARE_OPERATION::COMPARE_OPERATION_SAD_EQUAL_SDD,
|
||||
@@ -207,7 +207,7 @@ void CommandQueueHw<gfxCoreFamily>::patchCommands(CommandList &commandList, uint
|
||||
break;
|
||||
}
|
||||
case CommandList::CommandToPatch::PauseOnEnqueueSemaphoreEnd: {
|
||||
NEO::EncodeSempahore<GfxFamily>::programMiSemaphoreWait(reinterpret_cast<MI_SEMAPHORE_WAIT *>(commandToPatch.pCommand),
|
||||
NEO::EncodeSemaphore<GfxFamily>::programMiSemaphoreWait(reinterpret_cast<MI_SEMAPHORE_WAIT *>(commandToPatch.pCommand),
|
||||
csr->getDebugPauseStateGPUAddress(),
|
||||
static_cast<uint32_t>(NEO::DebugPauseState::hasUserEndConfirmation),
|
||||
COMPARE_OPERATION::COMPARE_OPERATION_SAD_EQUAL_SDD,
|
||||
|
||||
Reference in New Issue
Block a user