feature: pass lowPriority flag when creating context with aubstream

Related-To: NEO-10168

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2024-06-07 09:57:31 +00:00
committed by Compute-Runtime-Automation
parent 703fabdffd
commit 8c48dbe39e
2 changed files with 3 additions and 0 deletions

View File

@@ -51,6 +51,8 @@ void CommandStreamReceiverSimulatedCommonHw<GfxFamily>::setupContext(OsContext &
if (osContext.isHighPriority()) {
flags |= aub_stream::hardwareContextFlags::highPriority;
} else if (osContext.isLowPriority()) {
flags |= aub_stream::hardwareContextFlags::lowPriority;
}
if (debugManager.flags.AppendAubStreamContextFlags.get() != -1) {

View File

@@ -230,6 +230,7 @@ HWTEST_F(AubCommandStreamReceiverTests, givenAubCsrWhenLowPriorityOsContextIsSet
aubCsr->setupContext(osContext);
EXPECT_NE(nullptr, aubCsr->hardwareContextController.get());
EXPECT_TRUE(aub_stream::hardwareContextFlags::lowPriority & mockManager->contextFlags);
}
HWTEST_F(AubCommandStreamReceiverTests, givenAubCommandStreamReceiverInSubCaptureModeWhenItIsCreatedThenFileIsNotCreated) {