mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 20:39:56 +08:00
Add function to create devices bitfield based on allocation properties
Change-Id: Ic70443b1fb6106186efcff318690e434dc1db625 Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
ce77425428
commit
798137e4bb
@@ -49,6 +49,15 @@ struct CommandStreamReceiverTest : public DeviceFixture,
|
||||
CommandStreamReceiver *commandStreamReceiver;
|
||||
};
|
||||
|
||||
TEST_F(CommandStreamReceiverTest, whenCommandStreamReceiverIsSetAsSpecialCommandStreamReceiverInExecutionEnvironmentThenItIsMulitOsContextCapable) {
|
||||
EXPECT_FALSE(commandStreamReceiver->isMultiOsContextCapable());
|
||||
|
||||
auto executionEnvironment = pDevice->getExecutionEnvironment();
|
||||
executionEnvironment->specialCommandStreamReceiver.reset(commandStreamReceiver);
|
||||
EXPECT_TRUE(commandStreamReceiver->isMultiOsContextCapable());
|
||||
executionEnvironment->specialCommandStreamReceiver.release();
|
||||
}
|
||||
|
||||
HWTEST_F(CommandStreamReceiverTest, testCtor) {
|
||||
auto &csr = pDevice->getUltCommandStreamReceiver<FamilyType>();
|
||||
EXPECT_EQ(0u, csr.peekTaskLevel());
|
||||
|
||||
Reference in New Issue
Block a user