mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Limit direct submission to default context by default
Change-Id: I274d402eead87afca634d3b876fe500777910f96 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
97d9d35ab7
commit
11f76befda
@@ -27,3 +27,11 @@ TEST(OSContext, givenLowPriorityRootDeviceInternalAreTrueWhenCreatingDefaultOsCo
|
||||
EXPECT_TRUE(osContext->isRootDevice());
|
||||
delete osContext;
|
||||
}
|
||||
|
||||
TEST(OSContext, givenOsContextCreatedDefaultIsFalseWhenSettingTrueThenFlagTrueReturned) {
|
||||
OsContext *osContext = OsContext::create(nullptr, 0, 0, aub_stream::ENGINE_RCS, PreemptionMode::Disabled, false, false, false);
|
||||
EXPECT_FALSE(osContext->isDefaultContext());
|
||||
osContext->setDefaultContext(true);
|
||||
EXPECT_TRUE(osContext->isDefaultContext());
|
||||
delete osContext;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user