mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 02:18:05 +08:00
refactor: remove not needed code
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
b2ba1fbecf
commit
65188fc90b
@@ -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;
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user