mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Fix direct submission initialization
Related-To: NEO-6057 Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
5aeae0cf99
commit
cdb7287816
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user