mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +08:00
Replace virtual method call for DC flush with stored bool value 3/n
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
33f5915062
commit
9d94089a95
@ -452,6 +452,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, StaticWalkerPartitionFourTilesTests, givenPreWalker
|
||||
testArgs.emitSelfCleanup = false;
|
||||
testArgs.staticPartitioning = true;
|
||||
testArgs.workPartitionAllocationGpuVa = rootCsr->getWorkPartitionAllocationGpuAddress();
|
||||
testArgs.dcFlushEnable = rootCsr->getDcFlushSupport();
|
||||
WalkerPartition::constructStaticallyPartitionedCommandBuffer<FamilyType>(
|
||||
taskStreamCpu,
|
||||
taskStreamGpu,
|
||||
@ -495,7 +496,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, StaticWalkerPartitionFourTilesTests, whenNoPreWalke
|
||||
testArgs.emitSelfCleanup = false;
|
||||
testArgs.staticPartitioning = true;
|
||||
testArgs.workPartitionAllocationGpuVa = rootCsr->getWorkPartitionAllocationGpuAddress();
|
||||
|
||||
testArgs.dcFlushEnable = rootCsr->getDcFlushSupport();
|
||||
WalkerPartition::constructStaticallyPartitionedCommandBuffer<FamilyType>(
|
||||
taskStreamCpu,
|
||||
taskStreamGpu,
|
||||
|
@ -992,7 +992,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, AubWalkerPartitionZeroTest, givenPredicatedCommandB
|
||||
testArgs.synchronizeBeforeExecution = false;
|
||||
testArgs.secondaryBatchBuffer = false;
|
||||
testArgs.emitSelfCleanup = false;
|
||||
|
||||
testArgs.dcFlushEnable = NEO::MemorySynchronizationCommands<FamilyType>::getDcFlushEnable(true, *defaultHwInfo);
|
||||
WalkerPartition::constructDynamicallyPartitionedCommandBuffer<FamilyType>(
|
||||
streamCpuPointer,
|
||||
taskStream->getGraphicsAllocation()->getGpuAddress(),
|
||||
|
@ -1112,6 +1112,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, XeHPAndLaterDispatchWalkerBasicTest, GivenPipeContr
|
||||
testArgs.crossTileAtomicSynchronization = true;
|
||||
testArgs.emitPipeControlStall = true;
|
||||
testArgs.partitionCount = 2u;
|
||||
testArgs.dcFlushEnable = csr.getDcFlushSupport();
|
||||
testArgs.tileCount = static_cast<uint32_t>(device->getDeviceBitfield().count());
|
||||
|
||||
DebugManager.flags.SynchronizeWalkerInWparidMode.set(0);
|
||||
@ -1169,6 +1170,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, XeHPAndLaterDispatchWalkerBasicTest, GivenPipeContr
|
||||
testArgs.crossTileAtomicSynchronization = false;
|
||||
testArgs.emitPipeControlStall = false;
|
||||
testArgs.partitionCount = 2u;
|
||||
testArgs.dcFlushEnable = csr.getDcFlushSupport();
|
||||
testArgs.tileCount = static_cast<uint32_t>(device->getDeviceBitfield().count());
|
||||
|
||||
DebugManager.flags.SynchronizeWalkerInWparidMode.set(0);
|
||||
@ -1241,6 +1243,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, XeHPAndLaterDispatchWalkerBasicTest, GivenPipeContr
|
||||
VariableBackup<bool> pipeControlConfigBackup(&ImplicitScalingDispatch<FamilyType>::getPipeControlStallRequired(), true);
|
||||
|
||||
auto cmdQ = std::make_unique<MockCommandQueueHw<FamilyType>>(context.get(), device.get(), nullptr);
|
||||
auto &csr = cmdQ->getUltCommandStreamReceiver();
|
||||
|
||||
size_t numPipeControls = MemorySynchronizationCommands<FamilyType>::isBarrierWaRequired(device->getHardwareInfo()) ? 2 : 1;
|
||||
|
||||
@ -1254,6 +1257,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, XeHPAndLaterDispatchWalkerBasicTest, GivenPipeContr
|
||||
testArgs.emitPipeControlStall = true;
|
||||
testArgs.crossTileAtomicSynchronization = true;
|
||||
testArgs.partitionCount = 16u;
|
||||
testArgs.dcFlushEnable = csr.getDcFlushSupport();
|
||||
testArgs.tileCount = static_cast<uint32_t>(device->getDeviceBitfield().count());
|
||||
|
||||
auto partitionSize = WalkerPartition::estimateSpaceRequiredInCommandBuffer<FamilyType>(testArgs);
|
||||
@ -1270,6 +1274,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, XeHPAndLaterDispatchWalkerBasicTest, GivenPipeContr
|
||||
VariableBackup<bool> pipeControlConfigBackup(&ImplicitScalingDispatch<FamilyType>::getPipeControlStallRequired(), false);
|
||||
|
||||
auto cmdQ = std::make_unique<MockCommandQueueHw<FamilyType>>(context.get(), device.get(), nullptr);
|
||||
auto &csr = cmdQ->getUltCommandStreamReceiver();
|
||||
|
||||
size_t numPipeControls = MemorySynchronizationCommands<FamilyType>::isBarrierWaRequired(device->getHardwareInfo()) ? 2 : 1;
|
||||
|
||||
@ -1283,6 +1288,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, XeHPAndLaterDispatchWalkerBasicTest, GivenPipeContr
|
||||
testArgs.emitPipeControlStall = false;
|
||||
testArgs.crossTileAtomicSynchronization = false;
|
||||
testArgs.partitionCount = 16u;
|
||||
testArgs.dcFlushEnable = csr.getDcFlushSupport();
|
||||
testArgs.tileCount = static_cast<uint32_t>(device->getDeviceBitfield().count());
|
||||
|
||||
auto partitionSize = WalkerPartition::estimateSpaceRequiredInCommandBuffer<FamilyType>(testArgs);
|
||||
|
Reference in New Issue
Block a user