mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 16:24:18 +08:00
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:
committed by
Compute-Runtime-Automation
parent
703fabdffd
commit
8c48dbe39e
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user