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:
Jablonski, Mateusz
2019-02-20 14:03:04 +01:00
committed by sys_ocldev
parent ce77425428
commit 798137e4bb
10 changed files with 53 additions and 5 deletions

View File

@@ -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());