mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
refactor: rename global debug manager to debugManager
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f2ede40d2e
commit
c9664e6bad
@@ -37,17 +37,17 @@ namespace L0 {
|
||||
CommandQueueAllocatorFn commandQueueFactory[IGFX_MAX_PRODUCT] = {};
|
||||
|
||||
bool CommandQueue::frontEndTrackingEnabled() const {
|
||||
return NEO::DebugManager.flags.AllowPatchingVfeStateInCommandLists.get() || this->frontEndStateTracking;
|
||||
return NEO::debugManager.flags.AllowPatchingVfeStateInCommandLists.get() || this->frontEndStateTracking;
|
||||
}
|
||||
|
||||
CommandQueueImp::CommandQueueImp(Device *device, NEO::CommandStreamReceiver *csr, const ze_command_queue_desc_t *desc)
|
||||
: desc(*desc), device(device), csr(csr) {
|
||||
int overrideCmdQueueSyncMode = NEO::DebugManager.flags.OverrideCmdQueueSynchronousMode.get();
|
||||
int overrideCmdQueueSyncMode = NEO::debugManager.flags.OverrideCmdQueueSynchronousMode.get();
|
||||
if (overrideCmdQueueSyncMode != -1) {
|
||||
this->desc.mode = static_cast<ze_command_queue_mode_t>(overrideCmdQueueSyncMode);
|
||||
}
|
||||
|
||||
int overrideUseKmdWaitFunction = NEO::DebugManager.flags.OverrideUseKmdWaitFunction.get();
|
||||
int overrideUseKmdWaitFunction = NEO::debugManager.flags.OverrideUseKmdWaitFunction.get();
|
||||
if (overrideUseKmdWaitFunction != -1) {
|
||||
useKmdWaitFunction = !!(overrideUseKmdWaitFunction);
|
||||
}
|
||||
@@ -213,7 +213,7 @@ void CommandQueueImp::postSyncOperations(bool hangDetected) {
|
||||
printKernelsPrintfOutput(hangDetected);
|
||||
checkAssert();
|
||||
|
||||
if (NEO::Debugger::isDebugEnabled(internalUsage) && device->getL0Debugger() && NEO::DebugManager.flags.DebuggerLogBitmask.get()) {
|
||||
if (NEO::Debugger::isDebugEnabled(internalUsage) && device->getL0Debugger() && NEO::debugManager.flags.DebuggerLogBitmask.get()) {
|
||||
device->getL0Debugger()->printTrackedAddresses(csr->getOsContext().getContextId());
|
||||
}
|
||||
|
||||
@@ -327,8 +327,8 @@ void CommandQueueImp::handleIndirectAllocationResidency(UnifiedMemoryControls un
|
||||
NEO::Device *neoDevice = this->device->getNEODevice();
|
||||
auto svmAllocsManager = this->device->getDriverHandle()->getSvmAllocsManager();
|
||||
auto submitAsPack = this->device->getDriverHandle()->getMemoryManager()->allowIndirectAllocationsAsPack(neoDevice->getRootDeviceIndex());
|
||||
if (NEO::DebugManager.flags.MakeIndirectAllocationsResidentAsPack.get() != -1) {
|
||||
submitAsPack = !!NEO::DebugManager.flags.MakeIndirectAllocationsResidentAsPack.get();
|
||||
if (NEO::debugManager.flags.MakeIndirectAllocationsResidentAsPack.get() != -1) {
|
||||
submitAsPack = !!NEO::debugManager.flags.MakeIndirectAllocationsResidentAsPack.get();
|
||||
}
|
||||
|
||||
if (submitAsPack) {
|
||||
|
||||
@@ -91,7 +91,7 @@ ze_result_t CommandQueueHw<gfxCoreFamily>::executeCommandLists(
|
||||
ret = this->executeCommandListsRegular(ctx, numCommandLists, phCommandLists, hFence);
|
||||
}
|
||||
|
||||
if (NEO::DebugManager.flags.PauseOnEnqueue.get() != -1) {
|
||||
if (NEO::debugManager.flags.PauseOnEnqueue.get() != -1) {
|
||||
neoDevice->debugExecutionCounter++;
|
||||
}
|
||||
|
||||
@@ -605,7 +605,7 @@ size_t CommandQueueHw<gfxCoreFamily>::estimateLinearStreamSizeInitial(
|
||||
|
||||
if (ctx.isDirectSubmissionEnabled) {
|
||||
linearStreamSizeEstimate += NEO::EncodeBatchBufferStartOrEnd<GfxFamily>::getBatchBufferStartSize();
|
||||
if (NEO::DebugManager.flags.DirectSubmissionRelaxedOrdering.get() == 1) {
|
||||
if (NEO::debugManager.flags.DirectSubmissionRelaxedOrdering.get() == 1) {
|
||||
linearStreamSizeEstimate += 2 * sizeof(typename GfxFamily::MI_LOAD_REGISTER_REG);
|
||||
}
|
||||
} else {
|
||||
@@ -617,7 +617,7 @@ size_t CommandQueueHw<gfxCoreFamily>::estimateLinearStreamSizeInitial(
|
||||
linearStreamSizeEstimate += csrHw->getCmdSizeForActivePartitionConfig();
|
||||
}
|
||||
|
||||
if (NEO::DebugManager.flags.EnableSWTags.get()) {
|
||||
if (NEO::debugManager.flags.EnableSWTags.get()) {
|
||||
linearStreamSizeEstimate += NEO::SWTagsManager::estimateSpaceForSWTags<GfxFamily>();
|
||||
ctx.globalInit = true;
|
||||
}
|
||||
@@ -798,7 +798,7 @@ void CommandQueueHw<gfxCoreFamily>::getGlobalStatelessHeapAndMakeItResident() {
|
||||
|
||||
template <GFXCORE_FAMILY gfxCoreFamily>
|
||||
void CommandQueueHw<gfxCoreFamily>::getTagsManagerHeapsAndMakeThemResidentIfSWTagsEnabled(NEO::LinearStream &cmdStream) {
|
||||
if (NEO::DebugManager.flags.EnableSWTags.get()) {
|
||||
if (NEO::debugManager.flags.EnableSWTags.get()) {
|
||||
NEO::Device *neoDevice = this->device->getNEODevice();
|
||||
NEO::SWTagsManager *tagsManager = neoDevice->getRootDeviceEnvironment().tagsManager.get();
|
||||
UNRECOVERABLE_IF(tagsManager == nullptr);
|
||||
@@ -871,7 +871,7 @@ void CommandQueueHw<gfxCoreFamily>::updateOneCmdListPreemptionModeAndCtxStatePre
|
||||
CommandListRequiredStateChange &cmdListRequired) {
|
||||
|
||||
if (cmdListRequired.flags.preemptionDirty) {
|
||||
if (NEO::DebugManager.flags.EnableSWTags.get()) {
|
||||
if (NEO::debugManager.flags.EnableSWTags.get()) {
|
||||
NEO::Device *neoDevice = this->device->getNEODevice();
|
||||
neoDevice->getRootDeviceEnvironment().tagsManager->insertTag<GfxFamily, NEO::SWTags::PipeControlReasonTag>(
|
||||
cmdStream,
|
||||
@@ -1146,7 +1146,7 @@ NEO::SubmissionStatus CommandQueueHw<gfxCoreFamily>::prepareAndSubmitBatchBuffer
|
||||
if (ctx.isDirectSubmissionEnabled) {
|
||||
auto offset = ptrDiff(innerCommandStream.getCpuBase(), outerCommandStream.getCpuBase()) + innerCommandStream.getUsed();
|
||||
uint64_t startAddress = outerCommandStream.getGraphicsAllocation()->getGpuAddress() + offset;
|
||||
if (NEO::DebugManager.flags.BatchBufferStartPrepatchingWaEnabled.get() == 0) {
|
||||
if (NEO::debugManager.flags.BatchBufferStartPrepatchingWaEnabled.get() == 0) {
|
||||
startAddress = 0;
|
||||
}
|
||||
|
||||
@@ -1157,7 +1157,7 @@ NEO::SubmissionStatus CommandQueueHw<gfxCoreFamily>::prepareAndSubmitBatchBuffer
|
||||
*(MI_BATCH_BUFFER_END *)buffer = GfxFamily::cmdInitBatchBufferEnd;
|
||||
}
|
||||
|
||||
if (ctx.isNEODebuggerActive(this->device) || NEO::DebugManager.flags.EnableSWTags.get()) {
|
||||
if (ctx.isNEODebuggerActive(this->device) || NEO::debugManager.flags.EnableSWTags.get()) {
|
||||
cleanLeftoverMemory(outerCommandStream, innerCommandStream);
|
||||
} else if (this->alignedChildStreamPadding) {
|
||||
void *paddingPtr = innerCommandStream.getSpace(this->alignedChildStreamPadding);
|
||||
|
||||
Reference in New Issue
Block a user