refactor: remove not needed code

Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
Michal Mrozek
2023-09-08 16:18:15 +00:00
committed by Compute-Runtime-Automation
parent b2ba1fbecf
commit 65188fc90b
2 changed files with 1 additions and 24 deletions

View File

@@ -272,7 +272,7 @@ cl_int CommandQueueHw<GfxFamily>::enqueueHandler(Surface **surfacesForResidency,
} else if (computeCommandStreamReceiver.peekTimestampPacketWriteEnabled()) {
if (CL_COMMAND_BARRIER == commandType && !isNonStallingIoqBarrier) {
setStallingCommandsOnNextFlush(true);
if (NEO::DebugManager.flags.SkipDcFlushOnBarrierWithoutEvents.get() == 0 || event || getGpgpuCommandStreamReceiver().isMultiTileOperationEnabled()) {
if (NEO::DebugManager.flags.SkipDcFlushOnBarrierWithoutEvents.get() == 0 || event) {
setDcFlushRequiredOnStallingCommandsOnNextFlush(true);
}
this->splitBarrierRequired = true;

View File

@@ -388,29 +388,6 @@ HWTEST_F(OOQTaskTests, givenSkipDcFlushOnBarrierWithoutEventsDisableddWhenEnquei
EXPECT_TRUE(pCmdQ->isDcFlushRequiredOnStallingCommandsOnNextFlush());
}
HWTEST_F(OOQTaskTests, givenSkipDcFlushOnBarrierWithoutEventsAndMultiTileContextWhenEnqueuingBarrierWithWaitlistThenDcFlushSet) {
auto &commandStreamReceiver = pDevice->getUltCommandStreamReceiver<FamilyType>();
if (false == commandStreamReceiver.peekTimestampPacketWriteEnabled()) {
GTEST_SKIP();
}
commandStreamReceiver.setActivePartitions(2u);
commandStreamReceiver.staticWorkPartitioningEnabled = true;
EXPECT_TRUE(commandStreamReceiver.isMultiTileOperationEnabled());
DebugManagerStateRestore restorer;
DebugManager.flags.SkipDcFlushOnBarrierWithoutEvents.set(1);
const cl_uint numEventsInWaitList = 0;
const cl_event *eventWaitList = nullptr;
auto retVal = pCmdQ->enqueueBarrierWithWaitList(
numEventsInWaitList,
eventWaitList,
nullptr);
EXPECT_EQ(CL_SUCCESS, retVal);
EXPECT_TRUE(pCmdQ->isStallingCommandsOnNextFlushRequired());
EXPECT_TRUE(pCmdQ->isDcFlushRequiredOnStallingCommandsOnNextFlush());
}
HWTEST_F(OOQTaskTests, givenEnqueueMarkerWithWaitListWhenIsMarkerWithPostSyncWriteThenBcsTimestapLastBarrierToWaitForIsNotEmpty) {
auto &commandStreamReceiver = pDevice->getUltCommandStreamReceiver<FamilyType>();
if (false == commandStreamReceiver.peekTimestampPacketWriteEnabled()) {