Enable task count update from wait

Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
This commit is contained in:
Jobczyk, Lukasz
2022-03-25 13:00:53 +00:00
committed by Compute-Runtime-Automation
parent 022eb054e6
commit d77a6cbe4b
14 changed files with 116 additions and 52 deletions

View File

@@ -561,6 +561,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);