diff --git a/opencl/test/unit_test/command_stream/command_stream_receiver_flush_task_3_tests.cpp b/opencl/test/unit_test/command_stream/command_stream_receiver_flush_task_3_tests.cpp index 5bf2cb4fba..6c8f1309c1 100644 --- a/opencl/test/unit_test/command_stream/command_stream_receiver_flush_task_3_tests.cpp +++ b/opencl/test/unit_test/command_stream/command_stream_receiver_flush_task_3_tests.cpp @@ -476,13 +476,6 @@ HWCMDTEST_TEMPLATED_F(IGFX_GEN12LP_CORE, CommandStreamReceiverFlushTaskTestsWith } } -HWTEST_F(CommandStreamReceiverFlushTaskTests, givenCsrCreatedWithDedicatedDebugFlagWhenItIsCreatedThenItHasProperDispatchMode) { - DebugManagerStateRestore stateRestore; - debugManager.flags.CsrDispatchMode.set(static_cast(DispatchMode::adaptiveDispatch)); - std::unique_ptr> mockCsr(new MockCsrHw2(*pDevice->executionEnvironment, pDevice->getRootDeviceIndex(), pDevice->getDeviceBitfield())); - EXPECT_EQ(DispatchMode::adaptiveDispatch, mockCsr->dispatchMode); -} - HWTEST_TEMPLATED_F(CommandStreamReceiverFlushTaskTestsWithMockCsrHw2, givenCsrInBatchingModeWhenBlockingCommandIsSendThenItIsFlushedAndNotBatched) { CommandQueueHw commandQueue(nullptr, pClDevice, 0, false); auto &commandStream = commandQueue.getCS(4096u); diff --git a/shared/source/command_stream/command_stream_receiver.h b/shared/source/command_stream/command_stream_receiver.h index 47c8f21627..4406b72933 100644 --- a/shared/source/command_stream/command_stream_receiver.h +++ b/shared/source/command_stream/command_stream_receiver.h @@ -76,11 +76,9 @@ class TagAllocator; class TagNodeBase; enum class DispatchMode { - deviceDefault = 0, // default for given device - immediateDispatch, // everything is submitted to the HW immediately - adaptiveDispatch, // dispatching is handled to async thread, which combines batch buffers basing on load (not implemented) - batchedDispatchWithCounter, // dispatching is batched, after n commands there is implicit flush (not implemented) - batchedDispatch // dispatching is batched, explicit clFlush is required + deviceDefault = 0, // default for given device + immediateDispatch, // everything is submitted to the HW immediately + batchedDispatch // dispatching is batched, explicit clFlush is required }; class CommandStreamReceiver : NEO::NonCopyableAndNonMovableClass { diff --git a/shared/test/unit_test/command_stream/aub_command_stream_receiver_2_tests.cpp b/shared/test/unit_test/command_stream/aub_command_stream_receiver_2_tests.cpp index 1e28e5c540..48a2bf1a76 100644 --- a/shared/test/unit_test/command_stream/aub_command_stream_receiver_2_tests.cpp +++ b/shared/test/unit_test/command_stream/aub_command_stream_receiver_2_tests.cpp @@ -121,7 +121,7 @@ HWTEST_F(AubCommandStreamReceiverTests, givenAubCommandStreamReceiverWhenForcedB size_t sizeBatchBuffer = 0xffffu; std::unique_ptr> flatBatchBuffer( - aubCsr->getFlatBatchBufferHelper().flattenBatchBuffer(aubCsr->getRootDeviceIndex(), batchBuffer, sizeBatchBuffer, DispatchMode::adaptiveDispatch, pDevice->getDeviceBitfield()), + aubCsr->getFlatBatchBufferHelper().flattenBatchBuffer(aubCsr->getRootDeviceIndex(), batchBuffer, sizeBatchBuffer, DispatchMode::deviceDefault, pDevice->getDeviceBitfield()), [&](GraphicsAllocation *ptr) { memoryManager->freeGraphicsMemory(ptr); }); EXPECT_EQ(nullptr, flatBatchBuffer.get()); EXPECT_EQ(0xffffu, sizeBatchBuffer);