mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Do not use direct submission in internal and low priority contexts
Change-Id: Ifac52dd36737151ea4d84bec95750e1716cafa9a Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
4181102ff1
commit
ad4925aef9
@@ -12,7 +12,18 @@
|
||||
using namespace NEO;
|
||||
|
||||
TEST(OSContext, whenCreatingDefaultOsContextThenExpectInitializedAlways) {
|
||||
OsContext *osContext = OsContext::create(nullptr, 0, 0, aub_stream::ENGINE_RCS, PreemptionMode::Disabled, false);
|
||||
OsContext *osContext = OsContext::create(nullptr, 0, 0, aub_stream::ENGINE_RCS, PreemptionMode::Disabled, false, false, false);
|
||||
EXPECT_TRUE(osContext->isInitialized());
|
||||
EXPECT_FALSE(osContext->isLowPriority());
|
||||
EXPECT_FALSE(osContext->isInternalEngine());
|
||||
EXPECT_FALSE(osContext->isRootDevice());
|
||||
delete osContext;
|
||||
}
|
||||
|
||||
TEST(OSContext, givenLowPriorityRootDeviceInternalAreTrueWhenCreatingDefaultOsContextThenExpectGettersTrue) {
|
||||
OsContext *osContext = OsContext::create(nullptr, 0, 0, aub_stream::ENGINE_RCS, PreemptionMode::Disabled, true, true, true);
|
||||
EXPECT_TRUE(osContext->isLowPriority());
|
||||
EXPECT_TRUE(osContext->isInternalEngine());
|
||||
EXPECT_TRUE(osContext->isRootDevice());
|
||||
delete osContext;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user