mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
Add multiStorageResource flag to AllocationProperties
Related-To: NEO-3242 Change-Id: If31adaead389acd3bef6af1931b91396c43b305e Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
04e893d31f
commit
329d940285
@@ -361,3 +361,14 @@ TEST(DefaultContext, givenDefaultContextWhenItIsQueriedForTypeThenDefaultTypeIsR
|
||||
MockContext context;
|
||||
EXPECT_EQ(ContextType::CONTEXT_TYPE_DEFAULT, context.peekContextType());
|
||||
}
|
||||
|
||||
TEST(Context, givenContextWhenCheckIfAllocationsAreMultiStorageThenReturnProperValueAccordingToContextType) {
|
||||
MockContext context;
|
||||
EXPECT_TRUE(context.areMultiStorageAllocationsPreffered());
|
||||
|
||||
context.setContextType(ContextType::CONTEXT_TYPE_SPECIALIZED);
|
||||
EXPECT_FALSE(context.areMultiStorageAllocationsPreffered());
|
||||
|
||||
context.setContextType(ContextType::CONTEXT_TYPE_UNRESTRICTIVE);
|
||||
EXPECT_TRUE(context.areMultiStorageAllocationsPreffered());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user