mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Enable task count update from wait
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
283746f4cb
commit
6e5bc0d5ee
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user