mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-28 16:48:45 +08:00
test: correct expectations in opencl tests if heapless enabled 4/4
Related-To: NEO-10641 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
41e24635e3
commit
c7a6a74e4e
@@ -115,6 +115,7 @@ struct EnqueueHandlerWithAubSubCaptureTests : public EnqueueHandlerTest {
|
||||
MockCmdQWithAubSubCapture(Context *context, ClDevice *device) : CommandQueueHw<FamilyType>(context, device, nullptr, false) {}
|
||||
|
||||
WaitStatus waitUntilComplete(TaskCountType gpgpuTaskCountToWait, Range<CopyEngineState> copyEnginesToWait, FlushStamp flushStampToWait, bool useQuickKmdSleep, bool cleanTemporaryAllocationList, bool skipWait) override {
|
||||
|
||||
waitUntilCompleteCalled = true;
|
||||
return CommandQueueHw<FamilyType>::waitUntilComplete(gpgpuTaskCountToWait, copyEnginesToWait, flushStampToWait, useQuickKmdSleep, cleanTemporaryAllocationList, skipWait);
|
||||
}
|
||||
@@ -133,6 +134,7 @@ HWTEST_F(EnqueueHandlerWithAubSubCaptureTests, givenEnqueueHandlerWithAubSubCapt
|
||||
DebugManagerStateRestore stateRestore;
|
||||
debugManager.flags.AUBDumpSubCaptureMode.set(1);
|
||||
|
||||
UnitTestSetter::disableHeaplessStateInit(stateRestore);
|
||||
auto aubCsr = new MockAubCsr<FamilyType>("", true, *pDevice->executionEnvironment, pDevice->getRootDeviceIndex(), pDevice->getDeviceBitfield());
|
||||
pDevice->resetCommandStreamReceiver(aubCsr);
|
||||
|
||||
@@ -145,6 +147,7 @@ HWTEST_F(EnqueueHandlerWithAubSubCaptureTests, givenEnqueueHandlerWithAubSubCapt
|
||||
MockCmdQWithAubSubCapture<FamilyType> cmdQ(context, pClDevice);
|
||||
MockKernelWithInternals mockKernel(*pClDevice);
|
||||
size_t gws[3] = {1, 0, 0};
|
||||
|
||||
cmdQ.enqueueKernel(mockKernel.mockKernel, 1, nullptr, gws, nullptr, 0, nullptr, nullptr);
|
||||
|
||||
EXPECT_TRUE(cmdQ.waitUntilCompleteCalled);
|
||||
@@ -174,6 +177,8 @@ HWTEST_F(EnqueueHandlerWithAubSubCaptureTests, givenEnqueueHandlerWithAubSubCapt
|
||||
debugManager.flags.AUBDumpSubCaptureMode.set(1);
|
||||
debugManager.flags.EnableTimestampPacket.set(true);
|
||||
|
||||
UnitTestSetter::disableHeaplessStateInit(stateRestore);
|
||||
|
||||
auto aubCsr = new MockAubCsr<FamilyType>("", true, *pDevice->executionEnvironment, pDevice->getRootDeviceIndex(), pDevice->getDeviceBitfield());
|
||||
pDevice->resetCommandStreamReceiver(aubCsr);
|
||||
|
||||
@@ -207,6 +212,7 @@ HWTEST_F(EnqueueHandlerWithAubSubCaptureTests, givenInputEventsWhenDispatchingEn
|
||||
DebugManagerStateRestore stateRestore;
|
||||
debugManager.flags.AUBDumpSubCaptureMode.set(1);
|
||||
debugManager.flags.EnableTimestampPacket.set(true);
|
||||
UnitTestSetter::disableHeaplessStateInit(stateRestore);
|
||||
|
||||
auto defaultEngine = defaultHwInfo->capabilityTable.defaultEngineType;
|
||||
|
||||
@@ -497,6 +503,9 @@ HWTEST2_F(EnqueueHandlerTest, givenEnqueueHandlerWhenAddPatchInfoCommentsForAUBD
|
||||
|
||||
MockKernelWithInternals mockKernel(*pClDevice);
|
||||
auto mockCmdQ = std::unique_ptr<MockCommandQueueHw<FamilyType>>(new MockCommandQueueHw<FamilyType>(context, pClDevice, 0));
|
||||
if (mockCmdQ->getHeaplessModeEnabled()) {
|
||||
GTEST_SKIP();
|
||||
}
|
||||
|
||||
size_t gws[] = {1, 1, 1};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user