mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 17:33:00 +08:00
Revert "performance: Stop direct submission before removing host ptrs"
This reverts commit 4fd219cdbb.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
de789ac7e5
commit
ebf09afc42
@@ -1151,29 +1151,6 @@ HWTEST_TEMPLATED_F(WddmCommandStreamMockGdiTest, givenCsrWhenFlushMonitorFenceTh
|
||||
EXPECT_EQ(directSubmission->flushMonitorFenceCalled, 1u);
|
||||
}
|
||||
|
||||
HWTEST_TEMPLATED_F(WddmCommandStreamMockGdiTest, givenDirectSubmissionWhenRestartForHostPtrThenRingIsRestarted) {
|
||||
using MockSubmission = MockWddmDrmDirectSubmissionDispatchCommandBuffer<FamilyType>;
|
||||
auto mockCsr = static_cast<MockWddmCsr<FamilyType> *>(csr);
|
||||
|
||||
debugManager.flags.EnableDirectSubmission.set(1);
|
||||
|
||||
auto hwInfo = device->getRootDeviceEnvironment().getMutableHardwareInfo();
|
||||
hwInfo->capabilityTable.directSubmissionEngines.data[aub_stream::ENGINE_RCS].engineSupported = true;
|
||||
|
||||
mockCsr->callParentInitDirectSubmission = false;
|
||||
csr->initDirectSubmission();
|
||||
|
||||
mockCsr->directSubmission = std::make_unique<MockSubmission>(*device->getDefaultEngine().commandStreamReceiver);
|
||||
auto directSubmission = reinterpret_cast<MockSubmission *>(mockCsr->directSubmission.get());
|
||||
EXPECT_FALSE(directSubmission->ringStart);
|
||||
|
||||
csr->stopDirectSubmissionForHostptrDestroy();
|
||||
EXPECT_FALSE(directSubmission->ringStart);
|
||||
|
||||
csr->startDirectSubmissionForHostptrDestroy();
|
||||
EXPECT_TRUE(directSubmission->dispatchCommandBufferCalled);
|
||||
}
|
||||
|
||||
HWTEST_TEMPLATED_F(WddmCommandStreamMockGdiTest, givenLastSubmittedFenceLowerThanFenceValueToWaitWhenWaitFromCpuThenFlushMonitorFence) {
|
||||
using MockSubmission = MockWddmDrmDirectSubmissionDispatchCommandBuffer<FamilyType>;
|
||||
auto mockCsr = static_cast<MockWddmCsr<FamilyType> *>(csr);
|
||||
|
||||
Reference in New Issue
Block a user