mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-23 03:33:13 +08:00
refactor: remove not needed debug flag AppendAubStreamContextFlags
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
2c400e3076
commit
91fe2ec380
@@ -44,10 +44,6 @@ void CommandStreamReceiverSimulatedCommonHw<GfxFamily>::setupContext(OsContext &
|
||||
flags |= aub_stream::hardwareContextFlags::lowPriority;
|
||||
}
|
||||
|
||||
if (debugManager.flags.AppendAubStreamContextFlags.get() != -1) {
|
||||
flags |= static_cast<uint32_t>(debugManager.flags.AppendAubStreamContextFlags.get());
|
||||
}
|
||||
|
||||
if (aubManager) {
|
||||
hardwareContextController = std::make_unique<HardwareContextController>(*aubManager, osContext, flags);
|
||||
}
|
||||
|
||||
@@ -256,7 +256,6 @@ DECLARE_DEBUG_VARIABLE(int32_t, AdjustThreadGroupDispatchSize, -1, "-1: default,
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, ForceThreadGroupDispatchSizeAlgorithm, -1, "-1: default, 0: algorithm v1.0 1: algorithm v2.0")
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, ForceNonblockingExecbufferCalls, -1, "-1: default, 0: make execbuffer call blocking, 1: make execbuffer call nonblocking. Supported only in prelim i915 kernels.")
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, ForceComputeWalkerPostSyncFlush, -1, "-1: default, 0: disable 1: Enable all flushing bits in ComputeWalker->PostSync")
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, AppendAubStreamContextFlags, -1, "-1: default, >0: Append flags passed during HardwareContext creation.")
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, ContextGroupSize, -1, "-1: default, 0-1: context group disabled, >1: number of contexts in group.")
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, SecondaryContextEngineTypeMask, -1, "-1: default - all supported engines enabled. != -1: Each mask bit enables engine from EngineType enum (is supported).")
|
||||
DECLARE_DEBUG_VARIABLE(int32_t, OverrideNumHighPriorityContexts, -1, "-1: default. >= Number of HighPriority contexts to create as part of Secondary engines.")
|
||||
|
||||
@@ -515,7 +515,6 @@ DirectSubmissionRelaxedOrderingForBcs = -1
|
||||
OverrideUserFenceStartValue = -1
|
||||
DirectSubmissionRelaxedOrderingQueueSizeLimit = -1
|
||||
ExperimentalForceCopyThroughLock = -1
|
||||
AppendAubStreamContextFlags = -1
|
||||
ContextGroupSize=-1
|
||||
DirectSubmissionRelaxedOrderingMinNumberOfClients = -1
|
||||
ExperimentalCopyThroughLockWaitlistSizeThreshold= -1
|
||||
|
||||
@@ -45,20 +45,6 @@ struct MockAubCsrToTestDumpAubNonWritable : public AUBCommandStreamReceiverHw<Gf
|
||||
}
|
||||
};
|
||||
|
||||
HWTEST_F(AubCommandStreamReceiverTests, givenDebugFlagSetWhenCreatingContextThenAppendFlags) {
|
||||
DebugManagerStateRestore dbgRestore;
|
||||
debugManager.flags.AppendAubStreamContextFlags.set(0x123);
|
||||
|
||||
std::unique_ptr<MemoryManager> memoryManager(nullptr);
|
||||
MockAubManager mockAubManager;
|
||||
auto aubCsr = std::make_unique<AUBCommandStreamReceiverHw<FamilyType>>("", true, *pDevice->executionEnvironment, pDevice->getRootDeviceIndex(), pDevice->getDeviceBitfield());
|
||||
memoryManager.reset(new OsAgnosticMemoryManager(*pDevice->executionEnvironment));
|
||||
aubCsr->aubManager = &mockAubManager;
|
||||
|
||||
aubCsr->setupContext(*pDevice->getDefaultEngine().osContext);
|
||||
EXPECT_EQ(0x123u, mockAubManager.contextFlags & 0x123);
|
||||
}
|
||||
|
||||
TEST_F(AubCommandStreamReceiverTests, givenAubCommandStreamReceiverWhenItIsCreatedWithWrongGfxCoreFamilyThenNullPointerShouldBeReturned) {
|
||||
HardwareInfo *hwInfo = pDevice->getRootDeviceEnvironment().getMutableHardwareInfo();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user