Enable task count update from wait

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2021-12-17 13:18:49 +00:00
committed by Compute-Runtime-Automation
parent 283746f4cb
commit 6e5bc0d5ee
9 changed files with 74 additions and 4 deletions

View File

@@ -388,6 +388,21 @@ HWTEST_F(CommandStreamReceiverTest, givenUpdateTaskCountFromWaitWhenCheckTaskCou
}
}
HWTEST_F(CommandStreamReceiverTest, givenUpdateTaskCountFromWaitWhenCheckIfEnabledThenCanBeEnabledOnlyWithDirectSubmission) {
auto &csr = pDevice->getUltCommandStreamReceiver<FamilyType>();
auto &hwHelper = HwHelper::get(csr.peekHwInfo().platform.eRenderCoreFamily);
{
csr.directSubmissionAvailable = true;
EXPECT_EQ(csr.isUpdateTagFromWaitEnabled(), hwHelper.isUpdateTaskCountFromWaitSupported());
}
{
csr.directSubmissionAvailable = false;
EXPECT_FALSE(csr.isUpdateTagFromWaitEnabled());
}
}
struct InitDirectSubmissionFixture {
void SetUp() {
DebugManager.flags.EnableDirectSubmission.set(1);