Fix direct submission initialization

Related-To: NEO-6057
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
Maciej Dziuban
2021-10-12 10:08:17 +00:00
committed by Compute-Runtime-Automation
parent 5aeae0cf99
commit cdb7287816
3 changed files with 17 additions and 3 deletions

View File

@@ -234,6 +234,16 @@ HWTEST_F(CommandQueueHwTest, GivenCommandQueueWhenProcessDispatchForMarkerCalled
EXPECT_GT(csr.makeResidentCalledTimes, 0u);
}
HWTEST_F(CommandQueueHwTest, GivenCommandQueueWhenItIsCreatedThenInitDirectSubmissionIsCalledOnAllBcsEngines) {
MockCommandQueueHw<FamilyType> queue(pContext, pClDevice, nullptr);
for (auto engine : queue.bcsEngines) {
if (engine != nullptr) {
auto csr = static_cast<UltCommandStreamReceiver<FamilyType> *>(engine->commandStreamReceiver);
EXPECT_EQ(1u, csr->initDirectSubmissionCalled);
}
}
}
HWTEST_F(CommandQueueHwTest, givenCommandQueueWhenAskingForCacheFlushOnBcsThenReturnTrue) {
auto pHwQ = static_cast<CommandQueueHw<FamilyType> *>(pCmdQ);