mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 21:27:04 +08:00
Move hwInfo to root device environment
Related-To: NEO-3857 Change-Id: Ic23077cad080a249457cec39462ca7407e75b227 Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
ac0edb9a5d
commit
e9c576393e
@@ -303,7 +303,8 @@ TEST_F(ContextTest, givenContextWhenSharingTableIsNotEmptyThenReturnsSharingFunc
|
||||
|
||||
TEST(Context, givenFtrSvmFalseWhenContextIsCreatedThenSVMAllocsManagerIsNotCreated) {
|
||||
ExecutionEnvironment *executionEnvironment = platform()->peekExecutionEnvironment();
|
||||
auto hwInfo = executionEnvironment->getMutableHardwareInfo();
|
||||
executionEnvironment->prepareRootDeviceEnvironments(1u);
|
||||
auto hwInfo = executionEnvironment->rootDeviceEnvironments[0]->getMutableHardwareInfo();
|
||||
hwInfo->capabilityTable.ftrSvm = false;
|
||||
|
||||
auto device = std::make_unique<MockClDevice>(MockDevice::createWithExecutionEnvironment<MockDevice>(hwInfo, executionEnvironment, 0));
|
||||
|
||||
Reference in New Issue
Block a user